mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
T2 ruff rule
This commit is contained in:
@ -36,11 +36,7 @@ def remove_multiples_comments_from_same_user(apps, schema_editor):
|
||||
.order_by("-publish_date")
|
||||
.first()
|
||||
)
|
||||
for comment in (
|
||||
user.uv_comments.filter(uv__id=uv["uv"]).exclude(pk=last.pk).all()
|
||||
):
|
||||
print("removing : %s" % (comment,))
|
||||
comment.delete()
|
||||
user.uv_comments.filter(uv__id=uv["uv"]).exclude(pk=last.pk).delete()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
Reference in New Issue
Block a user