Skip to content

Commit

Permalink
Corrected _get_serializer() argument order. (#7156)
Browse files Browse the repository at this point in the history
  • Loading branch information
domingues authored and carltongibson committed Jan 23, 2020
1 parent f8f8b3a commit e4a26ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework/schemas/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def map_renderers(self, path, method):
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'):
Expand Down

2 comments on commit e4a26ad

@nautics889
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this really matter? oO

@carltongibson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Better to fix it now before people start relying on it. ALL the other methods have it the other way round.

Please sign in to comment.