diff options
| author | Nick Presta <nick@nickpresta.ca> | 2014-04-14 23:58:51 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-02 15:22:15 -0400 |
| commit | 11f0899bbe7c04dc6109f57c3b36ed8621b8f08e (patch) | |
| tree | 92bbc93a67159d5c418ae128598de4b6db326b52 /tests/admin_inlines | |
| parent | a00efa30d6e5ca220b914415904fff5fa0a6f2c5 (diff) | |
Fixed #11776 -- Added CSS class for non-field/top of form errors.
Thanks Daniel Pope for the suggestion.
Diffstat (limited to 'tests/admin_inlines')
| -rw-r--r-- | tests/admin_inlines/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py index 5d97381f18..56f006c441 100644 --- a/tests/admin_inlines/tests.py +++ b/tests/admin_inlines/tests.py @@ -94,7 +94,7 @@ class TestInline(TestCase): } response = self.client.post('/admin/admin_inlines/titlecollection/add/', data) # Here colspan is "4": two fields (title1 and title2), one hidden field and the delete checkbox. - self.assertContains(response, '<tr><td colspan="4"><ul class="errorlist"><li>The two titles must be the same</li></ul></td></tr>') + self.assertContains(response, '<tr><td colspan="4"><ul class="errorlist nonfield"><li>The two titles must be the same</li></ul></td></tr>') def test_no_parent_callable_lookup(self): """Admin inline `readonly_field` shouldn't invoke parent ModelAdmin callable""" |
