Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Altered [3778] change to match our coding/text style (django.middlewa…


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 40aa0ca commit 33a9a8f21ae6a752f64498eb08d737ece089ff5a @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/middleware/
4 django/middleware/
@@ -64,9 +64,9 @@ def process_response(self, request, response):
is_internal = referer and (domain in referer)
path = request.get_full_path()
if referer and not _is_ignorable_404(path) and (is_internal or '?' not in referer):
- ua = request.META.get('HTTP_USER_AGENT','<none>')
+ ua = request.META.get('HTTP_USER_AGENT', '<none>')
mail_managers("Broken %slink on %s" % ((is_internal and 'INTERNAL ' or ''), domain),
- "Referrer: %s\nRequested URL: %s\nUser Agent: %s\n" % (referer, request.get_full_path(), ua))
+ "Referrer: %s\nRequested URL: %s\nUser agent: %s\n" % (referer, request.get_full_path(), ua))
return response
# Use ETags, if requested.

0 comments on commit 33a9a8f

Please sign in to comment.
Something went wrong with that request. Please try again.