Re: Altering migration operations depending django.Version (3rd party apps)

2015-04-22 Thread Patrick Craston
django-versions > > On Wednesday, April 22, 2015 at 7:32:48 AM UTC-4, Patrick Craston wrote: >> >> Hi all >> >> I'm creating a migration for a 3rd party app that needs to work with >> current and previous Django versions. In Django 1.8 "makemigrations"

Altering migration operations depending django.Version (3rd party apps)

2015-04-22 Thread Patrick Craston
Hi all I'm creating a migration for a 3rd party app that needs to work with current and previous Django versions. In Django 1.8 "makemigrations" adds a "AlterModelManager" operation which only works with Django 1.8 and later since AlterModelManager didn't exist before. It will also do an AlterF