From 71e92dd3bbc07fd79f594d2049a06c5d3bf375f8 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 20 Jul 2012 03:10:28 +0530 Subject: [PATCH] silly on autocomplete --- itf/app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/app/views.py b/itf/app/views.py index 2c77e83..0832b26 100755 --- a/itf/app/views.py +++ b/itf/app/views.py @@ -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 = {