add hooks for admin interface

This commit is contained in:
bkfox
2016-07-25 01:12:14 +02:00
parent 9ea2c2c945
commit 52814c1c5b
3 changed files with 124 additions and 15 deletions

View File

@ -790,6 +790,7 @@ class SectionList(ListBase, SectionItem):
context = super().get_context(request, page, *args, **kwargs)
qs = self.get_queryset()
qs = qs.live()
if self.focus_available:
focus = qs.type(Publication).filter(focus = True).first()
if focus: