[Vuejs]-DRF PATCH method, got all values at type of string in request.data

0👍

solved this by setting null values as empty strings before the patch method and by setting allow_null=True in serializers

0👍

What should I do to get normal values(null as None, integer as int) in request.data?

Either use JSON or use the serializer’s validated data.
HTML forms are sent as strings in the forms of key/value pairs.

Leave a comment