i try to use SerializerMethodField with WritableNestedModelSerializer but it's not working
class BinCreateUpdateSerializer(WritableNestedModelSerializer):
"""Serializer for creation and update bin model."""
warehouse = serializers.SerializerMethodField()
def get_warehouse(self, obj):
print(obj)
return obj
i try to use
SerializerMethodField
withWritableNestedModelSerializer
but it's not workingthe method never called