Mercurial > public > sg101
diff custom_search/views.py @ 1032:e932f2ecd4a7
Django 1.8 warnings / tech debt cleanup.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 26 Dec 2015 15:10:55 -0600 |
parents | 840c1a8bd8af |
children | 829d3b7fc0f7 |
line wrap: on
line diff
--- a/custom_search/views.py Sun Dec 20 22:18:59 2015 -0600 +++ b/custom_search/views.py Sat Dec 26 15:10:55 2015 -0600 @@ -1,7 +1,7 @@ """Custom views for searching.""" import logging -from django.shortcuts import render_to_response +from django.shortcuts import render from haystack.views import SearchView from xapian import QueryParserError @@ -46,8 +46,7 @@ } context.update(self.extra_context()) - return render_to_response(self.template, context, - context_instance=self.context_class(self.request)) + return render(self.request, self.template, context) def extra_context(self): return {