在执行此操作时,我遇到了以下问题: 'ProfileAPI' object has no attribute 'action' class ProfileAPI(generics.RetrieveAPIViewserializer_class = ProfileSerializer
if self.action
get_parsers, so that only the update methods have form-data media type if self.action== 'update' or self.action == 'partial_update': parser_classes = [JSONParser]
r