I have a model that I fill out step by step, this means that I am creating a form wizard.
Because of this, most of the fields in this model are required, but null=True, blank=True should be avoided so as not to create unnecessary errors when sending part of the data.
I work with Angular.js and django-rest-framework, and I need to tell api that the x and y fields should be required, and it needs to return a validation error if they are empty.
python angularjs django django-rest-framework
Cristian rojas
source share