diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-07-26 00:54:24 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-07-26 00:54:24 -0400 |
commit | 24d2187900fc43c58bccf4cedce5dde5286724ab (patch) | |
tree | 24512c941badbcd35f5d4eb8f78d3013cfddf839 | |
parent | 537b4627f742ee0146e45cc468f6582d89c7b656 (diff) | |
download | askbot-24d2187900fc43c58bccf4cedce5dde5286724ab.tar.gz askbot-24d2187900fc43c58bccf4cedce5dde5286724ab.tar.bz2 askbot-24d2187900fc43c58bccf4cedce5dde5286724ab.zip |
renamed a base class, not very important
-rw-r--r-- | askbot/models/base.py | 2 | ||||
-rw-r--r-- | askbot/models/post.py | 4 | ||||
-rw-r--r-- | askbot/models/question.py | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/askbot/models/base.py b/askbot/models/base.py index b3a12fbf..74b8c2dd 100644 --- a/askbot/models/base.py +++ b/askbot/models/base.py @@ -41,7 +41,7 @@ class BaseQuerySetManager(models.Manager): return getattr(self.get_query_set(), attr, *args) -class AnonymousContent(models.Model): +class DraftContent(models.Model): """Base class for AnonymousQuestion and AnonymousAnswer""" session_key = models.CharField(max_length=40) #session id for anonymous questions wiki = models.BooleanField(default=False) diff --git a/askbot/models/post.py b/askbot/models/post.py index d61c1ae2..1d5afc13 100644 --- a/askbot/models/post.py +++ b/askbot/models/post.py @@ -29,7 +29,7 @@ from askbot.conf import settings as askbot_settings from askbot import exceptions from askbot.utils import markup from askbot.utils.html import sanitize_html -from askbot.models.base import BaseQuerySetManager, AnonymousContent +from askbot.models.base import BaseQuerySetManager, DraftContent #todo: maybe merge askbot.utils.markup and forum.utils.html from askbot.utils.diff import textDiff as htmldiff @@ -1897,7 +1897,7 @@ class PostFlagReason(models.Model): app_label = 'askbot' -class AnonymousAnswer(AnonymousContent): +class AnonymousAnswer(DraftContent): question = models.ForeignKey(Post, related_name='anonymous_answers') def publish(self, user): diff --git a/askbot/models/question.py b/askbot/models/question.py index 3e8d2267..c9749749 100644 --- a/askbot/models/question.py +++ b/askbot/models/question.py @@ -14,7 +14,7 @@ from django.utils.translation import ungettext import askbot import askbot.conf from askbot.models.tag import Tag -from askbot.models.base import AnonymousContent +from askbot.models.base import DraftContent from askbot.models.post import Post, PostRevision from askbot.models import signals from askbot import const @@ -919,7 +919,7 @@ class FavoriteQuestion(models.Model): return '[%s] favorited at %s' %(self.user, self.added_at) -class AnonymousQuestion(AnonymousContent): +class AnonymousQuestion(DraftContent): """question that was asked before logging in maybe the name is a little misleading, the user still may or may not want to stay anonymous after the question |