fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
65c77f6
)
fix
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 23 May 2023 11:26:38 +0000
(13:26 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 23 May 2023 11:26:38 +0000
(13:26 +0200)
src/catalogue/models/tag.py
patch
|
blob
|
history
diff --git
a/src/catalogue/models/tag.py
b/src/catalogue/models/tag.py
index
1051741
..
d77c843
100644
(file)
--- 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')
# TODO: remove magic.
if self.category == 'set':
return reverse('social_my_shelf')
+ elif self.category == 'thing':
+ return ''
else:
return reverse(f'{self.category}_catalogue')
else:
return reverse(f'{self.category}_catalogue')