I have a model that I\'m filling out step by step, it means I\'m making a form wizard.
Because of that most fields in this model are required but have null=Tru
Another option is to use required and trim_whitespace if you're using a CharField:
class CustomObjectSerializer(serializers.Serializer):
name = serializers.CharField(required=True, trim_whitespace=True)
required doc: http://www.django-rest-framework.org/api-guide/fields/#required
trim_whitespace doc: http://www.django-rest-framework.org/api-guide/fields/#charfield