Skip to content
Snippets Groups Projects
Commit aad39aca authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

bugfix for getting neighbors in events search

parent ec122f24
No related branches found
No related tags found
1 merge request!8Superevents
......@@ -696,6 +696,10 @@ def flexigridResponse(request, objects):
rp = int(request.GET.get('rows', 10)) # get how many rows we want to have into the grid
get_neighbors = request.GET.get('get_neighbors', False) # whether to retrieve the neighbors
if get_neighbors in ['True', 'true', 'T', 't', 1, '1']:
get_neighbors = True
else:
get_neighbors = False
# select related objects to reduce the number of queries.
objects = objects.select_related('group', 'pipeline', 'search', 'submitter')
......
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