Hi all,
My db, which is in production (with none-Django software) has some (legacy)
tables, which share a set of common fields and some fields, which differ by
child. The attached single table model hierarchy worked for me, even if it’s
not a legal Django arrangement. The ’type’ field is respon
According to sets theory you should not even care about order of
columns, the same as happens with the elements of a Python dict.
You can always tweak the generated sql for aesthetics...
El mié, 21-12-2005 a las 01:03 +, braver escribió:
> Is there a way to do single table inheritance
Is there a way to do single table inheritance in django? E.g., I have
this part of a classical CD model:
# order is preserved here,
# but changes for derived classes => so we invert it for them!
class Person(meta.Model):
middle_name = meta.TextField(null=True)
last_n
3 matches
Mail list logo