Re: Django models and inheritance

2011-03-12 Thread Mark J. Nenadov
> When you define an abstract model, you have to define the ``abstract'' > property inside its > Meta.http://docs.djangoproject.com/en/1.2/ref/models/options/#abstracthttp://docs.djangoproject.com/en/1.2/topics/db/models/#abstract-base-... > > That way your abstract class can inherit models.Model

Re: Django models and inheritance

2011-03-11 Thread Michal Petrucha
> If I have my abstract super classes inherit models.Model, things > technically can work. However, I arrive with a rather overly complex > SQL design generated from them (like needless tables for abstract > super classes). > > On the other hand, if I have my abstract super classes NOT inherit >

Django models and inheritance

2011-03-11 Thread Mark J. Nenadov
Hello folks, I'm a long time Python developer that is new to Django. I have a few questions about the role of inheritance in the models for an app. As I build my models, I'm finding at least somewhat of a need to start doing some inheritance, and if not a need--at least a design-related desire t

models and inheritance

2010-02-05 Thread msoulier
Hi, I have an existing model that I've used for some time, and just recently I had to break it up into two related models that share a great deal, but have some difference, so I used inheritance to create two subclasses. I notice that syncdb is smart enough to not create an sql table for the base