silly on autocomplete

This commit is contained in:
Sanj 2012-07-20 03:10:28 +05:30
parent 16e296d9f4
commit 71e92dd3bb

View File

@ -27,7 +27,7 @@ def autocomplete(request, ctype_id):
#model_class = ContentType.objects.get_for_id(ctype_id)
qset = model_class.get_qset()
all_results = model_class.fts(qset, q)
paginator = Paginator(qset, page_limit)
paginator = Paginator(all_results, page_limit)
results = paginator.page(page)
items = [obj.autocomplete_dict() for obj in results.object_list]
ret = {