mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 10:33:45 +03:00
Return all serializer field values in RegisterSerializer#get_cleaned_data
This commit is contained in:
parent
3b80fcbca9
commit
6c0e2d45bb
|
@ -150,11 +150,11 @@ class RegisterSerializer(serializers.Serializer):
|
|||
pass
|
||||
|
||||
def get_cleaned_data(self):
|
||||
return {
|
||||
'username': self.validated_data.get('username', ''),
|
||||
'password1': self.validated_data.get('password1', ''),
|
||||
'email': self.validated_data.get('email', '')
|
||||
}
|
||||
data = self.validated_data
|
||||
data.setdefault('username', '')
|
||||
data.setdefault('password1', '')
|
||||
data.setdefault('email', '')
|
||||
return data
|
||||
|
||||
def save(self, request):
|
||||
adapter = get_adapter()
|
||||
|
|
Loading…
Reference in New Issue
Block a user