mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 19:14:01 +03:00
Corrected _get_serializer() argument order. (#7156)
This commit is contained in:
parent
f8f8b3a1f1
commit
e4a26ad58a
|
@ -449,7 +449,7 @@ class AutoSchema(ViewInspector):
|
||||||
media_types.append(renderer.media_type)
|
media_types.append(renderer.media_type)
|
||||||
return media_types
|
return media_types
|
||||||
|
|
||||||
def _get_serializer(self, method, path):
|
def _get_serializer(self, path, method):
|
||||||
view = self.view
|
view = self.view
|
||||||
|
|
||||||
if not hasattr(view, 'get_serializer'):
|
if not hasattr(view, 'get_serializer'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user