#22874: Need a way to declare a dependency for AUTH_USER_MODEL.
----------------------------+------------------------
Reporter: melinath | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.7-beta-2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+------------------------
Right now, it's impossible to declare a dependency to/from
AUTH_USER_MODEL.
Here's the error I'm getting:
{{{
ValueError: Lookup failed for model referenced by field
feedback.FeedbackItem.user: brambling.Person
}}}
This is bad on two fronts:
1. From the "brambling" side - the side declaring/using an AUTH_USER_MODEL
- I can't use the "feedback" module because it doesn't declare a
dependency on my model - and django doesn't currently support reverse
dependencies (unless they're undocumented.)
2. From the "feedback" side - the side with migrations and a swappable FK
- the app can't be used by anyone who actually has a swappable model,
because there's no way to declare a correct migration dependency.
I feel like the correct fix here would be to have a 'swappable
dependency'.
This is on stable/1.7.x
--
Ticket URL: <https://code.djangoproject.com/ticket/22874>
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/051.bec8976bee67d8c329accb868d1c49eb%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.