diff options
| author | Veres Lajos <vlajos@gmail.com> | 2014-11-03 22:48:03 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-03 21:07:05 -0500 |
| commit | 6b32adda5935baa7cf99886c6c41a4eda358d2ef (patch) | |
| tree | 455d3e5e92f49b9c01f6970c81feccc0f1b272d4 /tests/admin_views/tests.py | |
| parent | 378f94e39e566c915fe60e01f0ea7e52343513da (diff) | |
[1.7.x] Fixed typos using https://github.com/vlajos/misspell_fixer
Backport of a71a2ea756 from master
Diffstat (limited to 'tests/admin_views/tests.py')
| -rw-r--r-- | tests/admin_views/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index b1db492aa8..3024faa150 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -480,7 +480,7 @@ class AdminViewBasicTest(AdminViewBasicTestCase): response = self.client.get('/test_admin/%s/admin_views/thing/' % self.urlbit, {'notarealfield': '5'}) self.assertRedirects(response, '/test_admin/%s/admin_views/thing/?e=1' % self.urlbit) - # Spanning relationships through an inexistant related object (Refs #16716) + # Spanning relationships through a nonexistent related object (Refs #16716) response = self.client.get('/test_admin/%s/admin_views/thing/' % self.urlbit, {'notarealfield__whatever': '5'}) self.assertRedirects(response, '/test_admin/%s/admin_views/thing/?e=1' % self.urlbit) @@ -606,7 +606,7 @@ class AdminViewBasicTest(AdminViewBasicTestCase): self.assertEqual(response.status_code, 400) self.assertEqual(len(calls), 1) - # Specifying a field that is not refered by any other model registered + # Specifying a field that is not referred by any other model registered # to this admin site should raise an exception. with patch_logger('django.security.DisallowedModelAdminToField', 'error') as calls: response = self.client.get("/test_admin/admin/admin_views/section/", {TO_FIELD_VAR: 'name'}) @@ -625,12 +625,12 @@ class AdminViewBasicTest(AdminViewBasicTestCase): response = self.client.get("/test_admin/admin/admin_views/ingredient/", {TO_FIELD_VAR: 'id'}) self.assertEqual(response.status_code, 200) - # #23329 - Specifying a field that is not refered by any other model directly registered + # #23329 - Specifying a field that is not referred by any other model directly registered # to this admin site but registered through inheritance should be allowed. response = self.client.get("/test_admin/admin/admin_views/referencedbyparent/", {TO_FIELD_VAR: 'id'}) self.assertEqual(response.status_code, 200) - # #23431 - Specifying a field that is only refered to by a inline of a registered + # #23431 - Specifying a field that is only referred to by a inline of a registered # model should be allowed. response = self.client.get("/test_admin/admin/admin_views/referencedbyinline/", {TO_FIELD_VAR: 'id'}) self.assertEqual(response.status_code, 200) |
