Format and fix logged out bug for most recent orgs

This commit is contained in:
cuom1999 2022-10-17 19:30:00 -05:00
parent 103a4bb69d
commit 30f1c105cb
6 changed files with 703 additions and 12 deletions

View file

@ -445,7 +445,9 @@ class OrganizationProfile(models.Model):
@classmethod
def remove_organization(self, users, organization):
organizationprofile = self.objects.filter(users=users, organization=organization)
organizationprofile = self.objects.filter(
users=users, organization=organization
)
if organizationprofile.exists():
organizationprofile.delete()