askbot.models.tag

class askbot.models.tag.MarkedTag(*args, **kwargs)

Bases: django.db.models.base.Model

MarkedTag(id, tag_id, user_id, reason)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MarkedTag.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

MarkedTag.get_reason_display(*moreargs, **morekwargs)
MarkedTag.tag
MarkedTag.user
class askbot.models.tag.Tag(*args, **kwargs)

Bases: askbot.models.base.DeletableContent

Tag(id, deleted, deleted_at, deleted_by_id, name, created_by_id, used_count)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception Tag.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Tag.created_by
Tag.deleted_by
Tag.questions
Tag.user_selections
class askbot.models.tag.TagManager

Bases: django.db.models.manager.Manager

get_or_create_multiple(names, user)

Fetches a list of Tags with the given names, creating any Tags which don’t exist when necesssary.

get_tags_by_questions(questions)
get_valid_tags(page_size)
update_use_counts(tags)

Updates the given Tags with their current use counts.

This Page