#15669: Include app label in admin validation messages
----------------------------------+---------------------------
Reporter: lamby | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: SVN
Keywords: | Triage Stage: Unreviewed
Has patch: 1 |
----------------------------------+---------------------------
It is possible to have duplicate model names across your project (which is
a good thing). However, it currently results in some ambiguous error
messages when validating admin classes.
For example:
{{{'MembershipAdmin.raw_id_fields' refers to field 'user_id' that is
missing from model 'Membership'.}}}
... does that refer to my Membership class in my "foo" app or my "bar"
app?
The attached patch includes the app label in the error messages. For
example:
{{{'MembershipAdmin.raw_id_fields' refers to field 'user_id' that is
missing from model 'bar.Membership'.}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/15669>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.