Created
February 20, 2015 09:33
-
-
Save claudep/2b61e59ac1bcc77ea2d5 to your computer and use it in GitHub Desktop.
Revisions
-
claudep created this gist
Feb 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ class BDNMiddleware(object): def process_exception(self, request, exception): """include authenticated user email in request.META""" if request.user.is_authenticated(): request.META['USER_EMAIL'] = request.user.email