summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_views/models.py
diff options
context:
space:
mode:
authorTravis Swicegood <development@domain51.com>2012-09-08 11:18:08 -0400
committerTravis Swicegood <development@domain51.com>2012-09-08 11:20:05 -0400
commitccd1bb0d81381b5611fb5caf2c4ebe5927fe2095 (patch)
treefb63e4fa6ae22cb3864267540e5c8baf6560abd7 /tests/regressiontests/admin_views/models.py
parente69348b4e7f07ef927edaecc7126901fc91c79d0 (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/models.py')
-rw-r--r--tests/regressiontests/admin_views/models.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py
index 0d5e327ecf..2c935c05a5 100644
--- a/tests/regressiontests/admin_views/models.py
+++ b/tests/regressiontests/admin_views/models.py
@@ -649,3 +649,9 @@ class UndeletableObject(models.Model):
Refs #10057.
"""
name = models.CharField(max_length=255)
+
+
+class Simple(models.Model):
+ """
+ Simple model with nothing on it for use in testing
+ """