1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed typos in comments and docs.

This commit is contained in:
luz.paz
2018-08-01 12:55:53 -04:00
committed by Tim Graham
parent 4263cd0e09
commit 97e637a87f
20 changed files with 22 additions and 23 deletions

View File

@@ -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)