function of this cod in django in django performance = serializers.SerializerMethodField() # def get_performance(self, instance): # return PerformanceSerializer(instance.performance).data
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