http://code.djangoproject.com/ticket/6776

newforms-admin raises an AlreadyRegistered exception if you attempt to
register a model with admin.site twice. Unfortunately, due to the
different places and ways in which a models.py file can be imported
it's extremely easy to trigger this accidentally, and difficult to
debug when you do.

The code in question is here:

http://code.djangoproject.com/browser/django/branches/newforms-admin/django/contrib/admin/sites.py#L78

if model in self._registry:
    raise AlreadyRegistered(
        'The model %s is already registered' % model.__name__
    )
self._registry[model] = admin_class(model, self)

Is there any reason we can't just ignore attempts at repeat
registrations here?

Cheers,

Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to