diff --git a/boards/views/search.py b/boards/views/search.py --- a/boards/views/search.py +++ b/boards/views/search.py @@ -27,7 +27,7 @@ class BoardSearchView(View): if form.is_valid(): query = form.cleaned_data[FORM_QUERY] if len(query) >= 3: - results = SearchQuerySet().auto_query(query).order_by('-id') + results = SearchQuerySet().auto_query(query).order_by('-id').load_all() paginator = get_paginator(results, 10) if REQUEST_PAGE in request.GET: @@ -37,4 +37,4 @@ class BoardSearchView(View): context[CONTEXT_PAGE] = paginator.page(page) context[CONTEXT_QUERY] = query - return render(request, TEMPLATE, context) \ No newline at end of file + return render(request, TEMPLATE, context)