run Black on changed code
This commit is contained in:
parent
782512b2ce
commit
dafda649f1
10 changed files with 118 additions and 82 deletions
|
@ -82,7 +82,10 @@ class BookWyrmModel(models.Model):
|
|||
return True
|
||||
|
||||
# you can see groups of which you are a member
|
||||
if hasattr(self, "memberships") and self.memberships.filter(user=viewer).exists():
|
||||
if (
|
||||
hasattr(self, "memberships")
|
||||
and self.memberships.filter(user=viewer).exists()
|
||||
):
|
||||
return True
|
||||
|
||||
# you can see objects which have a group of which you are a member
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue