Skip to content

Commit

Permalink
Merge pull request #74 from cclauss/patch-2
Browse files Browse the repository at this point in the history
README.rst: Fix typo
  • Loading branch information
nicholasserra authored Sep 20, 2023
2 parents cac39f7 + be9201a commit 2e4fe4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ How to migrate tos with South
`````````````````````````````

Here is some step-by-step example how to convert your legacy django-tos
instalation synced using syncdb into a translated django-tos-i18n with South
installation synced using syncdb into a translated django-tos-i18n with South
migrations.

1. Inform South that you want to store migrations in custom place by putting
Expand Down
2 changes: 1 addition & 1 deletion tos/tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_middleware_redirects(self):

def test_invalidate_cache_on_accept_fix_redirect_loop(self):
"""
Make sure accepting doesnt send you right back to tos page.
Make sure accepting doesn't send you right back to tos page.
"""
self.assertFalse(UserAgreement.objects.filter(terms_of_service=self.tos1, user=self.user2).exists())

Expand Down
2 changes: 1 addition & 1 deletion tos/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_redirect_security(self):
self.assertIn(settings.LOGIN_REDIRECT_URL, response.url)

def test_need_to_log_in(self):
""" GET to login url shows login tempalte."""
""" GET to login url shows login template."""

response = self.client.get(self.login_url)
self.assertContains(response, "Dummy login template.")
Expand Down
2 changes: 1 addition & 1 deletion tos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def login(request, template_name='registration/login.html',

request.session['tos_user'] = user.pk
# Pass the used backend as well since django will require it
# and it can only be optained by calling authenticate, but we
# and it can only be obtained by calling authenticate, but we
# got no credentials in check_tos.
# see: https://docs.djangoproject.com/en/1.6/topics/auth/default/#how-to-log-a-user-in
request.session['tos_backend'] = user.backend
Expand Down

0 comments on commit 2e4fe4d

Please sign in to comment.