From 690785fd4d8b8c55039e742d3aabebd03dd379bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 12 Jun 2017 15:01:36 +0200 Subject: [PATCH] call full_clean on change object save --- src/c3nav/editor/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/c3nav/editor/models.py b/src/c3nav/editor/models.py index 4eae0e71..150e027d 100644 --- a/src/c3nav/editor/models.py +++ b/src/c3nav/editor/models.py @@ -145,6 +145,7 @@ class Change(models.Model): raise ValidationError('%s must not be set if action is create or delete.' % field_name) def save(*args, **kwargs): + self.full_clean() if self.pk is not None: raise ValidationError('change objects can not be edited.') super().save(*args, **kwargs)