+ def clean(self):
+ if self.category == 'book' and (self.gazeta_link or self.wiki_link):
+ raise ValidationError(ugettext(
+ u"Book tags can't have attached links. Set them directly on the book instead of it's tag."))
+
+ @classmethod
+ @permalink
+ def create_url(cls, category, slug):
+ return ('catalogue.views.tagged_object_list', [
+ '/'.join((cls.categories_dict[category], slug))
+ ])
+