[Answered ]-Jquery Autocomplete limit results with Django

2👍

You can limit query results:

def search_view(request):
    ...
    listado = Model.objects.filter(
                        descripcion__istartswith=q
                                  ).order_by("descripcion")[:5]
    ...

Leave a comment