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

@ -96,8 +96,8 @@ class Website:
for section in sections:
if not hasattr(section, '_exposure'):
continue
self.exposures += section._exposure.gather(section)
self.exposures += section._exposure.gather(section, website = self)
section.website = self
def __route_to_url(self, name, route, view, sections, kwargs):
# route can be a tuple