Skip to content

Commit

Permalink
Fixing get param for autocomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanborror committed Jul 12, 2010
1 parent f93e1cf commit 88732fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic/tools/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def auto_complete(request, queryset, fields=None):
"""
object_list = []
limit = request.GET.get('limit', 10)
query = request.GET.get('q', '')
query = request.GET.get('term', '')
if fields:
q_object = Q()
for field in fields:
Expand Down

0 comments on commit 88732fc

Please sign in to comment.