#9417: Unhelpful admin.py error message
----------------------------------+-----------------------------------------
 Reporter:  dwillis               |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.0       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  0                     |  
----------------------------------+-----------------------------------------
 If you make a boneheaded move such as creating a ModelAdmin class for a
 model that you forgot to include in your admin.py's model import
 statement, you get an error. But it's not the error you might expect. What
 happens is you get the "model already registered exception", citing the
 first model registered using admin.site.register().

 I spent awhile looking around my app trying to see if I had indeed
 registered the model in question more than once via imports, but couldn't
 find it. When I fixed my error in the import statement, everything was
 fine.

 So definitely user error. But the error message Django displayed didn't
 help guide me to the problem.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9417>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to