Black formatting
This commit is contained in:
parent
e5750de3dd
commit
550eba1f68
2 changed files with 47 additions and 14 deletions
|
@ -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 """
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue