class Meta:
verbose_name = _("Tag Category")
- verbose_name_plural = _("Tag Categries")
+ verbose_name_plural = _("Tag Categories")
def __unicode__(self):
return self.name
slug += "_%d" % i
return slug
- category = models.ForeignKey(TagCategory, blank = True, null = True, on_delete = models.SET_NULL)
-
+ category = models.ForeignKey(TagCategory, blank = True, null = True, on_delete = models.SET_NULL, related_name = 'tags')
+ click_count = models.IntegerField(null = False, default = 0)
+
class Meta:
verbose_name = _("Tag")
verbose_name_plural = _("Tags")