Re: Automatic primary keys at model inheritance

2009-10-09 Thread Tomasz Zieliński
> > the primary key counters for Restaurant and Bar classes are separated, which > causes me troubles, because I want a Place to be Restaurant or Bar not both. > I'm not sure if this is what you need, but take a look here: http://docs.djangoproject.com/en/dev/topics/db/models/#id8 -- Tomasz Zie

Automatic primary keys at model inheritance

2009-10-08 Thread Vlastimil Zíma
Hello, I am using django 1.1 and I discovered this problem: I have models like these --- class Place(model.Models) ... class Restaurant(Place) ... class Bar(Place) ... --- the primary key counters for Restaurant and Bar classes are separate