We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dfed1b commit 8e67221Copy full SHA for 8e67221
adrf/fields.py
@@ -0,0 +1,6 @@
1
+from rest_framework.serializers import SerializerMethodField as DRFSerializerMethodField
2
+
3
+class SerializerMethodField(DRFSerializerMethodField):
4
+ async def ato_representation(self, attribute):
5
+ method = getattr(self.parent, self.method_name)
6
+ return await method(attribute)
0 commit comments