|
@@ -1760,7 +1760,7 @@ class AdminViewPermissionsTest(TestCase):
|
|
|
self.client.get(reverse('admin:logout'))
|
|
|
|
|
|
# view user should be able to view the article but not change any of them
|
|
|
- # (the POST can be sent, but no modification occures)
|
|
|
+ # (the POST can be sent, but no modification occurs)
|
|
|
self.client.force_login(self.viewuser)
|
|
|
response = self.client.get(article_changelist_url)
|
|
|
self.assertEqual(response.status_code, 200)
|
|
@@ -2240,7 +2240,7 @@ class AdminViewPermissionsTest(TestCase):
|
|
|
def test_post_save_message_no_forbidden_links_visible(self):
|
|
|
"""
|
|
|
Post-save message shouldn't contain a link to the change form if the
|
|
|
- user doen't have the change permission.
|
|
|
+ user doesn't have the change permission.
|
|
|
"""
|
|
|
self.client.force_login(self.adduser)
|
|
|
# Emulate Article creation for user with add-only permission.
|
|
@@ -3607,7 +3607,7 @@ class AdminCustomQuerysetTest(TestCase):
|
|
|
# Test for #14529. only() is used in ModelAdmin.get_queryset()
|
|
|
|
|
|
# model has __str__ method
|
|
|
- t = Telegram.objects.create(title="Frist Telegram")
|
|
|
+ t = Telegram.objects.create(title="First Telegram")
|
|
|
self.assertEqual(Telegram.objects.count(), 1)
|
|
|
response = self.client.get(reverse('admin:admin_views_telegram_change', args=(t.pk,)))
|
|
|
self.assertEqual(response.status_code, 200)
|