T2 ruff rule

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

View File

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