Remove cache for org member check
This commit is contained in:
parent
48d0a58dae
commit
cdbed121cd
3 changed files with 0 additions and 6 deletions
|
@ -157,11 +157,9 @@ class Organization(models.Model):
|
|||
def get_submissions_url(self):
|
||||
return reverse("organization_submissions", args=(self.id, self.slug))
|
||||
|
||||
@cache_wrapper("Oia")
|
||||
def is_admin(self, profile):
|
||||
return self.admins.filter(id=profile.id).exists()
|
||||
|
||||
@cache_wrapper("Oim")
|
||||
def is_member(self, profile):
|
||||
return profile in self
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue