📜  这个 cod 在 django 中的函数 in django performance = serializers.SerializerMethodField() # def get_performance(self, instance): # return PerformanceSerializer(instance.performance).data - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:12.206000             🧑  作者: Mango

代码示例1
please anyone can explain this code in django what is the function of this code 
 performance = serializers.SerializerMethodField()
  def get_performance(self, instance):
         return PerformanceSerializer(instance.performance).data