summaryrefslogtreecommitdiffstats
path: root/askbot/models/tag.py
diff options
context:
space:
mode:
Diffstat (limited to 'askbot/models/tag.py')
-rw-r--r--askbot/models/tag.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/askbot/models/tag.py b/askbot/models/tag.py
index 80690201..95223bad 100644
--- a/askbot/models/tag.py
+++ b/askbot/models/tag.py
@@ -91,6 +91,14 @@ class TagQuerySet(models.query.QuerySet):
tag.used_count = tag.threads.count()
tag.save()
+ def mark_undeleted(self):
+ """removes deleted(+at/by) marks"""
+ self.update(#undelete them
+ deleted = False,
+ deleted_by = None,
+ deleted_at = None
+ )
+
def tags_match_some_wildcard(self, wildcard_tags = None):
"""True if any one of the tags in the query set
matches a wildcard