#24506: Migrations are crashing after changing foreign key from auth.Group
model to
a proxy model of auth.Group
----------------------------+--------------------------------------
Reporter: tinloaf | Owner: marcofucci
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Comment (by marcofucci):
I had a good look at this.
The problem has nothing to do with the auth app and proxy models.
The issue is caused by `AlterField` not being able to build dependencies
properly.
If you take a look at the attached project, you'll realise that
`myproject.myapp.migrations.0003_auto_20150524_2202.py` should depend on
`('users', '0002_group')`.
If you do add that to the `dependencies` list, the `migrate` command
works.
I'm pretty sure this is a different bug. I tried to search in Trac, there
are many related bugs but nothing exactly like this.
The best one might be #22944 .
Maybe @andrewgodwin can take a look at this and close it referencing the
right ticket as he worked on many of them?
I've actually found a way to fix it but I don't have enough time atm.
--
Ticket URL: <https://code.djangoproject.com/ticket/24506#comment:11>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.29bfca4bd1758fa3e09a7d94e8b66d5c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.