Skip to content

Commit

Permalink
rename method for readability, #2
Browse files Browse the repository at this point in the history
  • Loading branch information
st4lk committed Sep 28, 2015
1 parent 08e4bdd commit 19d3d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rest_social_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get_serializer_in(self, *args, **kwargs):
kwargs['context'] = self.get_serializer_context()
return serializer_class(*args, **kwargs)

def get_serializer_data(self):
def get_serializer_in_data(self):
"""
Compile the incoming data into a form fit for the serializer_in class.
:return: Data for serializer in the form of a dictionary with 'provider' and 'code' keys.
Expand All @@ -114,7 +114,7 @@ def get_serializer_data(self):

@method_decorator(never_cache)
def post(self, request, *args, **kwargs):
serializer_in = self.get_serializer_in(data=self.get_serializer_data())
serializer_in = self.get_serializer_in(data=self.get_serializer_in_data())
serializer_in.is_valid(raise_exception=True)
self.set_input_data(request, serializer_in.validated_data.copy())
try:
Expand Down

0 comments on commit 19d3d7a

Please sign in to comment.