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'):