Black formatting
This commit is contained in:
@ -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 """
|
||||
|
||||
|
Reference in New Issue
Block a user