#22848: Admin initial migration can't find AUTH_USER_MODEL when running
makemigrations for the first time
---------------------------------+--------------------------------------
Reporter: valberg | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: master
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Comment (by stevejalim):
May I suggest either an extension to this fix or a note in documentation
about it?
Context: I just hit this issue myself, found the ticket, checked my Django
version and thought all should be well, but I thought it still wasn't
working for me until I actually read the patch.
There's still a subtle gotcha where `makemigrations --list` will still
throw the dependency error, while `makemigrations <app name>` will happily
run. So if somoene gets `Dependency on app with no migrations` when
starting runserver and they then try to check their migrations list, they
will be prevented from doing so and they have no cue to as to what they
can do to remedy things.
It's a corner case, sure, but likely will lead to user frustration for
those stuck in that corner.
If you want a patch for the docs, I'd be happy to submit one. I think the
an aside in the custom user docs seems a sensible place. Anyone disagree?
--
Ticket URL: <https://code.djangoproject.com/ticket/22848#comment:8>
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.977c08bd002f9caf8aa85d6b23617c9b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.