fix error
This commit is contained in:
parent
a78f1db5e6
commit
99fc3d1015
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ class OrganizationList(TitleMixin, ListView, OrganizationBase):
|
|||
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(OrganizationList, self).get_context_data(**kwargs)
|
||||
context["my_organizations"] = []
|
||||
if self.request.profile:
|
||||
context["my_organizations"] = self.request.profile.organizations.all()
|
||||
|
||||
|
|
Loading…
Reference in a new issue