#5968: Registering/Unregistering multiple models fails
-----------------------+----------------------------------------------------
Reporter: anderso | Owner: nobody
Status: new | Component: django.contrib.databrowse
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 1
-----------------------+----------------------------------------------------
Registering and unregistering multiple models fails. Calling for example
{{{
databrowse.site.register([model1, model2])
}}}
triggers this error: issubclass() arg 1 must be a class.
The patch fixes this by checking if the argument is a type before calling
issubclass. The call to issubclass is now not strictly necessary (unless
someone would want to pass in an iterable of models that is also type) but
I kept it for clarity.
--
Ticket URL: <http://code.djangoproject.com/ticket/5968>
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
-~----------~----~----~----~------~----~------~--~---