mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-22 05:51:53 +00:00
Removed RequestContext from site summary
This commit is contained in:
parent
30e04cfaa8
commit
84b3a0757a
1 changed files with 2 additions and 4 deletions
|
|
@ -1,4 +1,3 @@
|
|||
from django.template import RequestContext
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
from wagtail.wagtailcore import hooks
|
||||
|
|
@ -15,8 +14,7 @@ class SummaryItem(object):
|
|||
return {}
|
||||
|
||||
def render(self):
|
||||
return render_to_string(self.template, self.get_context(),
|
||||
RequestContext(self.request))
|
||||
return render_to_string(self.template, self.get_context(), request=self.request)
|
||||
|
||||
|
||||
class PagesSummaryItem(SummaryItem):
|
||||
|
|
@ -46,4 +44,4 @@ class SiteSummaryPanel(object):
|
|||
def render(self):
|
||||
return render_to_string('wagtailadmin/home/site_summary.html', {
|
||||
'summary_items': sorted(self.summary_items, key=lambda p: p.order),
|
||||
}, RequestContext(self.request))
|
||||
}, request=self.request)
|
||||
|
|
|
|||
Loading…
Reference in a new issue