makemigrations of model with single table inheritance and child fields

2015-12-22 Thread Axel Rau
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

Re: single table inheritance

2005-12-21 Thread Marcos Sánchez Provencio
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

single table inheritance

2005-12-20 Thread braver
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