Skip to content

Commit

Permalink
Fixed #132 -- thanks anonymous user
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Jul 21, 2005
1 parent 907ae72 commit ccffb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/extensions.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, request, dict={}):
self['user'] = request.user self['user'] = request.user
self['messages'] = request.user.get_and_delete_messages() self['messages'] = request.user.get_and_delete_messages()
self['perms'] = PermWrapper(request.user) self['perms'] = PermWrapper(request.user)
if DEBUG and request.META['REMOTE_ADDR'] in INTERNAL_IPS: if DEBUG and request.META.get('REMOTE_ADDR') in INTERNAL_IPS:
self['debug'] = True self['debug'] = True
from django.core import db from django.core import db
self['sql_queries'] = db.db.queries self['sql_queries'] = db.db.queries
Expand Down

0 comments on commit ccffb19

Please sign in to comment.