Skip to content

Commit

Permalink
renamed a base class, not very important
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyfadeev committed Jul 26, 2012
1 parent 537b462 commit 24d2187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion askbot/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __getattr__(self, attr, *args):
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)
Expand Down
4 changes: 2 additions & 2 deletions askbot/models/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
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
Expand Down Expand Up @@ -1897,7 +1897,7 @@ class Meta:
app_label = 'askbot'


class AnonymousAnswer(AnonymousContent):
class AnonymousAnswer(DraftContent):
question = models.ForeignKey(Post, related_name='anonymous_answers')

def publish(self, user):
Expand Down
4 changes: 2 additions & 2 deletions askbot/models/question.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
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
Expand Down Expand Up @@ -919,7 +919,7 @@ def __unicode__(self):
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
Expand Down

0 comments on commit 24d2187

Please sign in to comment.