#14639: admin.site.register() does not check if the model is abstract (gives
weird
error)
----------------------------------+-----------------------------------------
Reporter: vdboor | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.2
Keywords: error-messages | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
When an abstract model is registered with `admin.site.register()` it
produces the following error later on:
{{{
type object '...' has no attribute '_default_manager'
}}}
This error does not make much sense unless you're already have more
intimate knowledge of the framework. [[br]]
To ease the learning curve of new developers, I think it would make sense
to check whether the model is abstract or not.
--
Ticket URL: <http://code.djangoproject.com/ticket/14639>
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.