forked from mirrors/bookwyrm
Deduplicate books on tag page
This commit is contained in:
parent
cb6b98992c
commit
19109b98fa
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ def author_page(request, author_identifier):
|
|||
def tag_page(request, tag_id):
|
||||
''' books related to a tag '''
|
||||
tag_obj = models.Tag.objects.filter(identifier=tag_id).first()
|
||||
books = models.Book.objects.filter(tag__identifier=tag_id)
|
||||
books = models.Book.objects.filter(tag__identifier=tag_id).distinct()
|
||||
data = {
|
||||
'books': books,
|
||||
'tag': tag_obj,
|
||||
|
|
Loading…
Reference in a new issue