Permalink
Browse files

Adding display by default in searchs

  • Loading branch information...
1 parent ed0686b commit 30cd8455c07013b09a821e0e2a92c118368fb5af @versae versae committed Apr 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:

0 comments on commit 30cd845

Please sign in to comment.