Edited random file

This commit is contained in:
Théo DURR 2022-08-26 23:21:34 +02:00
parent 895d4b33a6
commit 02047b62d7
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30

View File

@ -76,6 +76,8 @@ class Subscription(models.Model):
class Meta:
ordering = ["subscription_start"]
def clean(self):
try:
for s in (
@ -97,6 +99,8 @@ class Subscription(models.Model):
# TODO see SubscriptionForm's clean method
raise ValidationError(_("Subscription error"))
def save(self):
super(Subscription, self).save()
from counter.models import Customer