ruff rules UP008 and UP009

This commit is contained in:
thomas girod
2024-06-27 14:46:43 +02:00
parent 688871a680
commit cfc19434d0
258 changed files with 473 additions and 824 deletions

View File

@ -1,4 +1,3 @@
# -*- coding:utf-8 -*
#
# Copyright 2023 © AE UTBM
# ae@utbm.fr / ae.info@utbm.fr
@ -88,7 +87,7 @@ class Subscription(models.Model):
raise ValidationError(_("Subscription error"))
def save(self, *args, **kwargs):
super(Subscription, self).save()
super().save()
from counter.models import Customer
_, created = Customer.get_or_create(self.member)