cook : perform clean_fields() validations
This commit is contained in:
parent
e2ffab609d
commit
9f715b356a
|
@ -174,7 +174,7 @@ class Command(BaseCommand):
|
|||
must_save = True
|
||||
if must_save:
|
||||
try:
|
||||
obj.clean()
|
||||
obj.full_clean()
|
||||
except ValidationError as e:
|
||||
raise CommandError(str(e))
|
||||
|
||||
|
|
Loading…
Reference in New Issue