diff options
| author | Tomek Paczkowski <tomek@hauru.eu> | 2013-06-04 23:35:11 +0200 |
|---|---|---|
| committer | Tomek Paczkowski <tomek@hauru.eu> | 2013-06-05 23:08:00 +0200 |
| commit | 0fd9f7c95f748764867dc148a2bacef807466d85 (patch) | |
| tree | a08c8b3d0b96b9a25224844c27457b57e0055eb3 /tests/modeladmin | |
| parent | 4f4e9243e4cf585e32a882804084853108ef94c0 (diff) | |
Fixed #19080 -- Fine-grained control over select_related in admin
Diffstat (limited to 'tests/modeladmin')
| -rw-r--r-- | tests/modeladmin/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/modeladmin/tests.py b/tests/modeladmin/tests.py index 73e88024cd..805b57c070 100644 --- a/tests/modeladmin/tests.py +++ b/tests/modeladmin/tests.py @@ -1161,9 +1161,11 @@ class ValidationTests(unittest.TestCase): class ValidationTestModelAdmin(ModelAdmin): list_select_related = 1 - six.assertRaisesRegex(self, + six.assertRaisesRegex( + self, ImproperlyConfigured, - "'ValidationTestModelAdmin.list_select_related' should be a bool.", + "'ValidationTestModelAdmin.list_select_related' should be either a " + "bool, a tuple or a list", ValidationTestModelAdmin.validate, ValidationTestModel, ) |
