run Black on changed code
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user