#4696: [newforms-admin] site.register reports a wrong error message
----------------------------------------------+-----------------------------
Reporter: Honza Král <[EMAIL PROTECTED]> | Owner: adrian
Status: new | Component: Admin interface
Version: newforms-admin | Keywords: register
AlreadyRegistered
Stage: Unreviewed | Has_patch: 1
----------------------------------------------+-----------------------------
whe you do site.register on a model that has already been registered with
the site, you get
{{{
AlreadyRegistered: The model ModelBase is already registered
}}}
It is always {{{ModelBase}}} since the code says (sites.py:76)
{{{
raise AlreadyRegistered('The model %s is already registered' %
model.__class__.__name__)
}}}
insted of
{{{
raise AlreadyRegistered('The model %s is already registered' %
model.__name__)
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/4696>
Django Code <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
-~----------~----~----~----~------~----~------~--~---