add aggregator app

This commit is contained in:
2019-01-28 00:20:09 +03:00
parent 8643fc42f9
commit b7e68abb03
29 changed files with 665 additions and 105 deletions

View File

@@ -6,13 +6,16 @@ class CabinetViewMixin(LoginRequiredMixin):
title = 'No title'
sidebar_section = None
def get_sidebar_section(self):
return self.sidebar_section
def get_title(self):
return self.title
def get_context_data(self, **kwargs):
ctx = super(CabinetViewMixin, self).get_context_data(**kwargs)
ctx['title'] = self.get_title()
ctx['sidebar_section'] = self.sidebar_section
ctx['sidebar_section'] = self.get_sidebar_section()
return ctx