Corrected _get_serializer() argument order. (#7156)

This commit is contained in:
Fábio Domingues 2020-01-23 14:53:47 +00:00 committed by Carlton Gibson
parent f8f8b3a1f1
commit e4a26ad58a

View File

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