Ticket #2833: auth_context_processors_fix.2.diff
File auth_context_processors_fix.2.diff, 484 bytes (added by , 17 years ago) |
---|
-
core/context_processors.py
14 14 Returns context variables required by apps that use Django's authentication 15 15 system. 16 16 """ 17 if not hasattr(request, 'user'): 18 return {} 17 19 return { 18 20 'user': request.user, 19 21 'messages': request.user.get_and_delete_messages(),