diff options
| author | Travis Swicegood <development@domain51.com> | 2012-09-08 11:18:08 -0400 |
|---|---|---|
| committer | Travis Swicegood <development@domain51.com> | 2012-09-08 11:20:05 -0400 |
| commit | ccd1bb0d81381b5611fb5caf2c4ebe5927fe2095 (patch) | |
| tree | fb63e4fa6ae22cb3864267540e5c8baf6560abd7 /tests/regressiontests/admin_views/customadmin.py | |
| parent | e69348b4e7f07ef927edaecc7126901fc91c79d0 (diff) | |
Remove Admin's swallowing of AttributeError (#16655, #18593, #18747)
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.
Diffstat (limited to 'tests/regressiontests/admin_views/customadmin.py')
| -rw-r--r-- | tests/regressiontests/admin_views/customadmin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/customadmin.py b/tests/regressiontests/admin_views/customadmin.py index 142527b022..031fb50f0f 100644 --- a/tests/regressiontests/admin_views/customadmin.py +++ b/tests/regressiontests/admin_views/customadmin.py @@ -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) |
