fixed duplicates in dashboard
This commit is contained in:
@@ -129,7 +129,7 @@ def tag_list(request):
|
||||
log.info(tags_user)
|
||||
for tag in tags_user:
|
||||
query = Post.objects.filter(tags__in=[tag]).order_by('-published_date')
|
||||
posts = posts | query
|
||||
posts = list(set(posts)|set(query))
|
||||
log.info(posts)
|
||||
return render(request, 'tag_list.html', {'posts': posts})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user