#24038: Django won't add dependencies to existing migrations
-------------------------------------+-------------------------------------
Reporter: nitely | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.7
Severity: Normal | Resolution: wontfix
Keywords: Migrations | Triage Stage:
AUTH_USER_MODEL | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by MarkusH):
* status: new => closed
* resolution: => wontfix
Comment:
It is impossible to rewrite migration files. They might contain custom
code.
Furthermore you are using an internal Django API (swappable models) that
isn't supported except for the User model in migrations. Apart from that,
your settings.AUTH_USER_MODEL is used by two models (contrib.auth and your
app) which is never going to work, if I'm not completely mistaken.
I recommend to have a look at the docs on how to extend the user
model:https://docs.djangoproject.com/en/1.7/topics/auth/customizing/#substituting-a
-custom-user-model
--
Ticket URL: <https://code.djangoproject.com/ticket/24038#comment:2>
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/064.c4bd866d54b20ee12d3601ba4819d52f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.