From 8b1d96a983bbd23b1175d005198182aeae6811af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Domingues?= Date: Thu, 23 Jan 2020 14:19:56 +0000 Subject: [PATCH] Fix _get_serializer argument order --- 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'):