mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Fixed #1271 -- Added a 'request' template context processor, which is not activated by default.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -38,6 +38,9 @@ def i18n(request):
|
||||
context_extras['LANGUAGE_CODE'] = LANGUAGE_CODE
|
||||
return context_extras
|
||||
|
||||
def request(request):
|
||||
return {'request': request}
|
||||
|
||||
# PermWrapper and PermLookupDict proxy the permissions system into objects that
|
||||
# the template system can understand.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user