X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/69fe8df9bf277960437b95fe0e91a3e090c0d828..8cff0ee70ee28ebb597f9bffd05aab147c2a1cd7:/questions/models.py?ds=sidebyside diff --git a/questions/models.py b/questions/models.py index b734346..746ad84 100644 --- a/questions/models.py +++ b/questions/models.py @@ -18,7 +18,7 @@ class TagCategory(models.Model): class Meta: verbose_name = _("Tag Category") - verbose_name_plural = _("Tag Categries") + verbose_name_plural = _("Tag Categories") def __unicode__(self): return self.name @@ -31,7 +31,7 @@ class Tag(TagBase): 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: