fix error

This commit is contained in:
cuom1999 2022-05-28 14:20:41 -05:00
parent a78f1db5e6
commit 99fc3d1015

View file

@ -151,6 +151,7 @@ class OrganizationList(TitleMixin, ListView, OrganizationBase):
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
context = super(OrganizationList, self).get_context_data(**kwargs) context = super(OrganizationList, self).get_context_data(**kwargs)
context["my_organizations"] = []
if self.request.profile: if self.request.profile:
context["my_organizations"] = self.request.profile.organizations.all() context["my_organizations"] = self.request.profile.organizations.all()