Created
August 24, 2018 20:50
-
-
Save itsderek23/997a59d28288f9ec970ebf22c1117b03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# views.py | |
except EmptyPage: | |
search_results = paginator.page(paginator.num_pages) | |
+ scout_apm.api.Context.add("search_query",search_query) | |
+ scout_apm.api.Context.add("search_results_size",len(search_results)) | |
return render(request, 'search/search_results.html', { | |
'search_query': search_query, | |
'search_results': search_results, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment