silly on autocomplete
This commit is contained in:
parent
16e296d9f4
commit
71e92dd3bb
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user