Black formatting

This commit is contained in:
Mouse Reeve
2021-03-16 12:59:25 -07:00
parent e5750de3dd
commit 550eba1f68
2 changed files with 47 additions and 14 deletions

View File

@ -22,8 +22,8 @@ class Report(BookWyrmModel):
user_model = apps.get_model("bookwyrm.User", require_ready=True)
# moderators and superusers should be notified
admins = user_model.objects.filter(
Q(user_permissions__name__in=["moderate_user", "moderate_post"]) |
Q(is_superuser=True)
Q(user_permissions__name__in=["moderate_user", "moderate_post"])
| Q(is_superuser=True)
).all()
notification_model = apps.get_model("bookwyrm.Notification", require_ready=True)
for admin in admins:
@ -33,7 +33,6 @@ class Report(BookWyrmModel):
notification_type="REPORT",
)
class Meta:
""" don't let users report themselves """