fix errors with exposures and calendar

This commit is contained in:
bkfox
2016-07-18 04:07:43 +02:00
parent 4e5d90fb1d
commit d3e05211c3
5 changed files with 53 additions and 33 deletions

View File

@ -64,7 +64,7 @@ class BaseView:
if self.sections:
if issubclass(type(self.sections), sections.Section):
self.template_name = self.sections.template_name
self.sections.prepare(self)
self.sections.prepare(self, **self.kwargs)
context.update(self.sections.get_context_data())
else:
if not self.template_name:
@ -142,9 +142,9 @@ class PostListView(BaseView, ListView):
def get_queryset(self):
default = self.prepare_list()
if default:
if not default:
qs = self.list.get_object_list()
if qs:
if qs is not None:
return qs
if self.route:
@ -181,7 +181,7 @@ class PostListView(BaseView, ListView):
self.css_class = self.list.css_class
default = False
self.list.prepare(self)
self.list.prepare(self, **self.kwargs)
if self.request.GET.get('fields'):
self.list.fields = [