1👍
✅
You can use serializers.Serializer instead of serializers.ModelSerializer
class Serielizer_RecalculateDeliveryPromise(serializers.Serializer):
service_type = serializers.CharField(max_length = 10, write_only= True, required= True )
package_type = serializers.CharField(max_length = 68, write_only= True, required= True )
origin_handover_point = serializers.CharField(max_length = 68, write_only= True, required= True )
destination_handover_point = serializers.CharField(max_length = 68, write_only= True,required= True )
Source:stackexchange.com