Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
and3rson authored Feb 28, 2017
1 parent 96c8c88 commit dda7f69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions searchableselect/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ def filter_models(request):
model_name = request.GET.get('model')
search_field = request.GET.get('search_field')
value = request.GET.get('q')
limit = request.GET.get('limit', 10)

limit = int(request.GET.get('limit', 10))
try:
model = get_model(model_name)
except LookupError as e: # pragma: no cover
Expand Down

0 comments on commit dda7f69

Please sign in to comment.