Fix subscription form

This commit is contained in:
Skia
2016-09-02 12:29:50 +02:00
parent bae34c4b1c
commit a0b1fa32e7
5 changed files with 95 additions and 87 deletions

View File

@ -69,7 +69,7 @@ class Subscription(models.Model):
except: # This should not happen, because the form should have handled the data before, but sadly, it still
# calls the model validation :'(
# TODO see SubscriptionForm's clean method
raise ValidationError(_("You are trying to create a subscription without member"))
raise ValidationError(_("Subscription error"))
def save(self):
super(Subscription, self).save()