Re: Migrations for multiple Django versions

2016-11-26 Thread Vlastimil Zíma
o publish different releases for > different versions of django. > > Dan > > On 25 November 2016 at 10:01, Vlastimil Zíma > wrote: > >> I don't think separate migrations would make the problem any better, that >> looks just like more complicated implementation of

Re: Migrations for multiple Django versions

2016-11-25 Thread Vlastimil Zíma
ly when I see a use case for multiple > Django version support it's for reusable apps, which shouldn't contain a > custom user model. > > https://docs.djangoproject.com/en/stable/topics/auth/customizing/#reusable-apps-and-auth-user-model > > On Thursday, November 24, 2016 at

Re: Migrations for multiple Django versions

2016-11-24 Thread Vlastimil Zíma
lp. > > On Tuesday, October 18, 2016 at 7:12:02 AM UTC-4, Vlastimil Zíma wrote: >> >> Hi everyone, >> >> we are trying in our application to support multiple Django versions, >> specifically 1.7 to 1.9. But we encountered a problem with >> `User.last_l

Re: Migrations for multiple Django versions

2016-10-20 Thread Vlastimil Zíma
> based on the Django version, conditionally adding operations in migrations > with some django.VERSION checks may help. > > On Tuesday, October 18, 2016 at 7:12:02 AM UTC-4, Vlastimil Zíma wrote: >> >> Hi everyone, >> >> we are trying in our application to sup

Migrations for multiple Django versions

2016-10-18 Thread Vlastimil Zíma
Hi everyone, we are trying in our application to support multiple Django versions, specifically 1.7 to 1.9. But we encountered a problem with `User.last_login` field. We use custom User model based on `AbstractBaseUser` as specified by the documentation. Everything was fine in Django 1.7, but

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