summaryrefslogtreecommitdiff
path: root/tests/regressiontests/modeladmin/models.py
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2008-08-14 21:03:44 +0000
committerBrian Rosner <brosner@gmail.com>2008-08-14 21:03:44 +0000
commit21029678078b8f69ff438ea9ed5a9a9359b05b2e (patch)
treeb9f7e7a055bcce22e56be56cbf663e888773ba87 /tests/regressiontests/modeladmin/models.py
parentdd0e5fd992986211bdb52b2cdfbd1e232788a20b (diff)
Fixed failing tests from [8352]. Thanks Alex Gaynor for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/modeladmin/models.py')
-rw-r--r--tests/regressiontests/modeladmin/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/regressiontests/modeladmin/models.py b/tests/regressiontests/modeladmin/models.py
index 0fdd9afdf1..488947ad3e 100644
--- a/tests/regressiontests/modeladmin/models.py
+++ b/tests/regressiontests/modeladmin/models.py
@@ -559,7 +559,8 @@ ImproperlyConfigured: `ValidationTestModelAdmin.list_display` must be a list or
>>> validate(ValidationTestModelAdmin, ValidationTestModel)
Traceback (most recent call last):
...
-ImproperlyConfigured: `ValidationTestModelAdmin.list_display[0]` refers to `non_existent_field` that is neither a field, method or property of model `ValidationTestModel`.
+ImproperlyConfigured: ValidationTestModelAdmin.list_display[0], 'non_existent_field' is not a callable or an attribute of 'ValidationTestModelAdmin' or found in the model 'ValidationTestModel'.
+
>>> class ValidationTestModelAdmin(ModelAdmin):
... list_display = ('users',)