#21901: Dependencies on unmigrated apps not always detected. -------------------------------------------+----------------------------- Reporter: mjtamlyn | Owner: Type: Bug | Status: new Component: Migrations | Version: 1.7-alpha-1 Severity: Release blocker | Keywords: Triage Stage: Accepted | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------------+----------------------------- Related to the comment on https://github.com/django/django/commit/941d23e54890bcc9e73734c5c1f3c82193fd97d6
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. -- 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/051.04895b445c8a50f5a75e4de80d1d1800%40djangoproject.com. For more options, visit https://groups.google.com/groups/opt_out.