summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-10 16:43:28 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-10 16:43:28 -0500
commit605fc414fd8e1226dfe2ffa89c41ad4d254b9b0f (patch)
tree94c3f276b13cb65bd7a214cb8a6ab235180ef84b
parenta2ca8b2dcdac8e7bbe0fe91a4f1d89a29f297f3b (diff)
downloadaskbot-605fc414fd8e1226dfe2ffa89c41ad4d254b9b0f.tar.gz
askbot-605fc414fd8e1226dfe2ffa89c41ad4d254b9b0f.tar.bz2
askbot-605fc414fd8e1226dfe2ffa89c41ad4d254b9b0f.zip
fixed an error so that syncdb works
-rwxr-xr-xforum/auth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/forum/auth.py b/forum/auth.py
index e8b97ddd..73cde75a 100755
--- a/forum/auth.py
+++ b/forum/auth.py
@@ -8,6 +8,7 @@ import datetime
from django.contrib.contenttypes.models import ContentType
from django.utils.translation import ugettext as _
from django.db import transaction
+import django.db.models
from models import Repute
from models import Question
from models import Answer
@@ -15,8 +16,6 @@ from models import Answer
#from models import mark_offensive, delete_post_or_answer
from const import TYPE_REPUTATION
import logging
-question_type = ContentType.objects.get_for_model(Question)
-answer_type = ContentType.objects.get_for_model(Answer)
VOTE_UP = 15
FLAG_OFFENSIVE = 15