What is the difference between customizing the "create" method in DRF viewset or customizing it in the serializer? I understand the serializer is responsible to deserialize the data, i.e. the way the data is presented in the POST query; however, I can also create objects in related fields in the serializer.
#views.py
def create(self, request):
pass
#serializer.py
def create(self, validated_data):
return Model.objects.create(**validated_data)
When should I customize views/create vs. serializer/create?