Commit 08939b64 by Julia Hansbrough

Fixed confusing docstring

parent 6d2cd987
...@@ -74,7 +74,7 @@ class DarkLangMiddleware(object): ...@@ -74,7 +74,7 @@ class DarkLangMiddleware(object):
def _activate_preview_language(self, request): def _activate_preview_language(self, request):
""" """
If the request has the get parameter ``preview-lang``, If the request has the get parameter ``preview-lang``,
and that language appears doesn't appear in ``self.released_langs``, and that language doesn't appear in ``self.released_langs``,
then set the session ``django_language`` to that language. then set the session ``django_language`` to that language.
""" """
if 'clear-lang' in request.GET: if 'clear-lang' in request.GET:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment