X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/69fe8df9bf277960437b95fe0e91a3e090c0d828..91c0733e775b428f3c2b4f614069aa43f4e740fd:/questions/models.py 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: