From e4a26ad58a0e3d13e7cb788b724398592b1543b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Domingues?= Date: Thu, 23 Jan 2020 14:53:47 +0000 Subject: [PATCH] Corrected _get_serializer() argument order. (#7156) --- rest_framework/schemas/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/schemas/openapi.py b/rest_framework/schemas/openapi.py index cb5ea95a3..3a7eb29a7 100644 --- a/rest_framework/schemas/openapi.py +++ b/rest_framework/schemas/openapi.py @@ -449,7 +449,7 @@ class AutoSchema(ViewInspector): media_types.append(renderer.media_type) return media_types - def _get_serializer(self, method, path): + def _get_serializer(self, path, method): view = self.view if not hasattr(view, 'get_serializer'):