summaryrefslogtreecommitdiffstats
path: root/main/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/middleware.py')
-rw-r--r--main/middleware.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/main/middleware.py b/main/middleware.py
index 4d343b4..f893c79 100644
--- a/main/middleware.py
+++ b/main/middleware.py
@@ -1,19 +1,3 @@
-import threading
-
-user_holder = threading.local()
-user_holder.user = None
-
-# http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
-class AutoUserMiddleware(object):
- '''Saves the current user so it can be retrieved by the admin'''
- def process_request(self, request):
- user_holder.user = request.user
-
-
-def get_user():
- '''Get the currently logged in request.user'''
- return user_holder.user
-
# begin copy of stock Django UpdateCacheMiddleware
# this is to address feeds caching issue which makes it horribly
# unperformant