fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adding tag click count to Tag
[prawokultury.git]
/
questions
/
models.py
diff --git
a/questions/models.py
b/questions/models.py
index
33d2a43
..
b734346
100644
(file)
--- a/
questions/models.py
+++ b/
questions/models.py
@@
-32,7
+32,8
@@
class Tag(TagBase):
return slug
category = models.ForeignKey(TagCategory, blank = True, null = True, on_delete = models.SET_NULL)
-
+ click_count = models.IntegerField(null = False, default = 0)
+
class Meta:
verbose_name = _("Tag")
verbose_name_plural = _("Tags")