def serializer_label(self): if self.serializer: return registry.get_serializer_name(self.serializer)
def get_serializer_label(self, instance): return registry.get_serializer_name(instance.serializer)