From: Radek Czajka Date: Tue, 23 May 2023 11:26:38 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/137adc006b783dc9444d051625ab4d59456840cd?ds=inline;hp=65c77f6685941ec4ac33e46a101d96f709552842 fix --- diff --git a/src/catalogue/models/tag.py b/src/catalogue/models/tag.py index 1051741bd..d77c84376 100644 --- a/src/catalogue/models/tag.py +++ b/src/catalogue/models/tag.py @@ -161,6 +161,8 @@ class Tag(models.Model): # TODO: remove magic. if self.category == 'set': return reverse('social_my_shelf') + elif self.category == 'thing': + return '' else: return reverse(f'{self.category}_catalogue')