Bases: askbot.models.base.MetaContent, askbot.models.base.UserContent
Comment(id, user_id, content_type_id, object_id, comment, added_at, html)
Bases: django.core.exceptions.ObjectDoesNotExist
Bases: django.core.exceptions.MultipleObjectsReturned
Provides a generic relation to any object through content-type/object-id fields.
deletes comment and concomitant response activity records, as well as mention records, while preserving integrity or response counts for the users
get list of users who want instant notifications about this post
argument potential_subscribers is required as it saves on db hits
get list of users who authored comments on a post and the post itself
typically post has a field to store raw source text in comment it is called .comment, in Question and Answer it is called .text also there is another field called .html (consistent across models) so the goal of this function is to render raw text into .html and extract any metadata given stored in source (currently this metadata is limited by twitter style @mentions but there may be more in the future
function returns a dictionary with the following keys html newly_mentioned_users - list of <User> objects removed_mentions - list of mention <Activity> objects - for removed ones
generic method to use with posts to be used prior to saving post edit or addition
Bases: askbot.models.base.MetaContent, askbot.models.base.UserContent
A flag on a Question or Answer indicating offensive content.
Bases: django.core.exceptions.ObjectDoesNotExist
Bases: django.core.exceptions.MultipleObjectsReturned
Provides a generic relation to any object through content-type/object-id fields.
Bases: django.db.models.manager.Manager
Bases: askbot.models.base.MetaContent, askbot.models.base.UserContent
Vote(id, user_id, content_type_id, object_id, vote, voted_at)
Bases: django.core.exceptions.ObjectDoesNotExist
Bases: django.core.exceptions.MultipleObjectsReturned
cancel the vote while taking into account whether vote was up or down
return change in score on the post
Provides a generic relation to any object through content-type/object-id fields.