run Black on changed code

This commit is contained in:
Hugh Rundle
2021-10-04 21:31:28 +11:00
parent 782512b2ce
commit dafda649f1
10 changed files with 118 additions and 82 deletions

View File

@ -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