Format and fix logged out bug for most recent orgs
This commit is contained in:
parent
103a4bb69d
commit
30f1c105cb
6 changed files with 703 additions and 12 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue