Skip to content

Commit

Permalink
Use request.data instead of request.POST
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zhou committed Jul 12, 2017
1 parent b3c694c commit 12ef654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djoser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class RegistrationView(generics.CreateAPIView):

def create(self, request, *args, **kwargs):
try:
email_users = self.get_email_users(request.POST.get('email'))
email_users = self.get_email_users(request.data.get('email'))
for user in email_users:
serializer = self.get_serializer(instance=user)
if settings.SEND_REREGISTRATION_EMAIL:
Expand Down

0 comments on commit 12ef654

Please sign in to comment.