mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Edited random file
This commit is contained in:
parent
895d4b33a6
commit
02047b62d7
@ -76,6 +76,8 @@ class Subscription(models.Model):
|
|||||||
class Meta:
|
class Meta:
|
||||||
ordering = ["subscription_start"]
|
ordering = ["subscription_start"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
try:
|
try:
|
||||||
for s in (
|
for s in (
|
||||||
@ -97,6 +99,8 @@ class Subscription(models.Model):
|
|||||||
# TODO see SubscriptionForm's clean method
|
# TODO see SubscriptionForm's clean method
|
||||||
raise ValidationError(_("Subscription error"))
|
raise ValidationError(_("Subscription error"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
super(Subscription, self).save()
|
super(Subscription, self).save()
|
||||||
from counter.models import Customer
|
from counter.models import Customer
|
||||||
|
Loading…
Reference in New Issue
Block a user