Skip to content
Snippets Groups Projects
Commit 4ee61445 authored by Brian Moe's avatar Brian Moe
Browse files

Removed case of multiple instances of same event from query results

parent 98e5431a
No related branches found
No related tags found
No related merge requests found
......@@ -403,6 +403,9 @@ def search(request):
if labels:
objects = objects.filter(labels__in=labels)
# Need this because events with multiple labels can appear multiple times!
objects = objects.distinct()
return object_list(request, objects, extra_context={'title':"Query Results"})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment