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
According to link1 and link2, and due to the intended field is null=True, blank=True (like email field of django.contrib.auth.models.User in my example) this will work:
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username', 'email', 'password')
extra_kwargs = {'email': {'required': True,
'allow_blank': False}}