Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding display by default in searchs

  • Loading branch information...
commit 30cd8455c07013b09a821e0e2a92c118368fb5af 1 parent ed0686b
Javier de la Rosa versae authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sylva/search/views.py
2  sylva/search/views.py
View
@@ -31,7 +31,7 @@ def graph_search(request, graph_slug, node_type_id=None,
results = []
if data:
q = data.get("q", "")
- display = data.get("display", None)
+ display = bool(data.get("display", True))
if node_type_id:
node_types = NodeType.objects.filter(id=node_type_id)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.