Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix #177 and remove unnecessary print statement

  • Loading branch information...
commit 8c3b564b43fa9f106c1acae097286893de5d4e41 1 parent a99e6a7
@pydanny authored
Showing with 4 additions and 4 deletions.
  1. +3 −3 grid/views.py
  2. +1 −1  searchv2/tests/test_views.py
View
6 grid/views.py
@@ -332,9 +332,9 @@ def ajax_grid_list(request, template_name="grid/ajax_grid_list.html"):
grids = []
if q:
grids = Grid.objects.filter(title__istartswith=q)
- package_id = request.GET.get('package_id','')
- if package_id:
- grids = grids.exclude(gridpackage__package__id=package_id)
+ package_id = request.GET.get('package_id','')
+ if package_id:
+ grids = grids.exclude(gridpackage__package__id=package_id)
return render(request, template_name, {'grids': grids})
View
2  searchv2/tests/test_views.py
@@ -75,4 +75,4 @@ def test_multiple_items(self):
)
url = reverse('search') + '?q=django-uni-form'
response = self.client.get(url)
- print response
+ #print response
Please sign in to comment.
Something went wrong with that request. Please try again.