Custom fields and apps should have a way to hook into BaseCommand.validate
|Reported by:||Jeremy Dunck||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Right now, management.validation.get_validation_errors has a long chain of elif isinstance's for built-in fields.
It should be possible for custom fields to participate in this model-declaration validation phase.
Change History (7)
comment:2 Changed 6 years ago by
|Summary:||Custom fields should be included in BaseCommand.validate → Custom fields and apps should have a way to hook into BaseCommand.validate|