I have seen this behaviour myself, with a custom user model using
`PermissionsMixin`. The necessary line in `dependencies` of `("auth",
"__first__"),` is not present. I'm not sure whether this is an issue with
it being a swappable model or not, but there's definitely a bug anyway.
The migration gets written out, but on running it you get a traceback
because the relations to auth cannot resolve (as the migration's limited
app cache ignores auth)
--
Ticket URL: <https://code.djangoproject.com/ticket/21901>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
The same user who posted this comment also opened a ticket: #21872.
It should be fixed now. Do you still see this error on master?
--
Ticket URL: <https://code.djangoproject.com/ticket/21901#comment:1>