summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-09 10:40:07 -0600
committerDan McGee <dan@archlinux.org>2010-02-09 10:40:07 -0600
commitc52d9649218107ed36cdc816b5d872cb030f367c (patch)
tree16558c6c9a92578f408cf6489eae4bd6029000c7 /main/models.py
parent964d89e11651a48e8c18c96d011ed5d9a9d97628 (diff)
Fix the get_user middleware stuff
First off, the copyright notice is from the other middleware previously removed, so all of that can go, along with some stragglers in the import list. Next, as stated on http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser, you need to be sure to have the import in the model class be the same as the import used in the middleware declaration, which was not true. Whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index 066e0ee6..28041b1d 100644
--- a/main/models.py
+++ b/main/models.py
@@ -1,7 +1,7 @@
from django.db import models
from django.db.models import Q
from django.contrib.auth.models import User
-from archweb.main.middleware import get_user
+from main.middleware import get_user
###########################
### User Profile Class ####