Permalink
Browse files

Fixing get param for autocomplete.

  • Loading branch information...
1 parent f93e1cf commit 88732fcbc6fc1e942394cb9830ae75b15cb6ee6e @nathanborror committed Jul 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 basic/tools/views/generic.py
View
2 basic/tools/views/generic.py
@@ -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:

0 comments on commit 88732fc

Please sign in to comment.