Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed silly line
  • Loading branch information
ojii committed Jun 8, 2012
1 parent 91d57b1 commit c91ebbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cms/middleware/multilingual.py
Expand Up @@ -134,8 +134,7 @@ def process_response(self, request, response):
response['Location'] = location
if not has_lang_prefix(location) and location.startswith("/") and \
not location.startswith(settings.MEDIA_URL) and \
not (getattr(settings,'STATIC_URL', False) and location.startswith(settings.STATIC_URL)) and \
not location.startswith(settings.STATIC_URL):
not (getattr(settings,'STATIC_URL', False) and location.startswith(settings.STATIC_URL)):
response['Location'] = "/%s%s" % (language, location)
response.set_cookie("django_language", language)
return response

0 comments on commit c91ebbb

Please sign in to comment.