T2 ruff rule

This commit is contained in:
thomas girod committed 2024-08-06 11:42:10 +02:00
1 parent 28d6d8ba96
commit 62bb15317c
11 files changed
+33 -35

No files matched your search

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