mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
During the new-admin changes, catching of AttributeError was added to the admin. This patch removes that as it's no longer possible to add a value to a ModelAdmin that is not available. Adding an attribute that can not be called causes an ImproperlyConfigured exception to be raised.
This commit is contained in:
parent
e69348b4e7
commit
ccd1bb0d81
5 changed files with 37 additions and 4 deletions
|
@ -49,3 +49,4 @@ site.register(models.Fabric, base_admin.FabricAdmin)
|
|||
site.register(models.ChapterXtra1, base_admin.ChapterXtra1Admin)
|
||||
site.register(User, UserLimitedAdmin)
|
||||
site.register(models.UndeletableObject, base_admin.UndeletableObjectAdmin)
|
||||
site.register(models.Simple, base_admin.AttributeErrorRaisingAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue