djangosnippets.org: Latest snippets tagged with 'table-per-hierarchy'https://djangosnippets.org/tags/table-per-hierarchy/2011-04-10T22:01:43.489391-05:00(Almost) Single table polymorphism in Django
2011-04-10T22:01:43.489391-05:00julkiewiczhttps://djangosnippets.org/snippets/2408/<p>An emulation of "table per hierarchy" a.k.a. "single table inheritance" in Django. The base class must hold all the fields. It's subclasses are not allowed to contain any additional fields and optimally they should be proxies. They however may provide additional methods to operate on the declared field. The presented …</p>
Freely redistributable