From 99fc3d101585bfc653fdea3d540c3709334cb974 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sat, 28 May 2022 14:20:41 -0500 Subject: [PATCH] fix error --- judge/views/organization.py | 1 + 1 file changed, 1 insertion(+) diff --git a/judge/views/organization.py b/judge/views/organization.py index 42426f2..7b7d7db 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -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()