Opened 11 years ago

Closed 11 years ago

#21901 closed Bug (duplicate)

Dependencies on unmigrated apps not always detected.

Reported by: Marc Tamlyn Owned by:
Component: Migrations Version: 1.7-alpha-1
Severity: Release blocker Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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)

Change History (1)

comment:1 by Baptiste Mispelon, 11 years ago

Resolution: duplicate
Status: newclosed

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?

Note: See TracTickets for help on using tickets.
Back to Top