mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +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
|
pass
|
||||||
|
|
||||||
def get_cleaned_data(self):
|
def get_cleaned_data(self):
|
||||||
return {
|
data = self.validated_data
|
||||||
'username': self.validated_data.get('username', ''),
|
data.setdefault('username', '')
|
||||||
'password1': self.validated_data.get('password1', ''),
|
data.setdefault('password1', '')
|
||||||
'email': self.validated_data.get('email', '')
|
data.setdefault('email', '')
|
||||||
}
|
return data
|
||||||
|
|
||||||
def save(self, request):
|
def save(self, request):
|
||||||
adapter = get_adapter()
|
adapter = get_adapter()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user