mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 20:33:44 +03:00
f14b3b03f7
- remove django-registration references - integrate with django-allauth - move all registration stuff to separated app - update unit tests
18 lines
421 B
Python
18 lines
421 B
Python
from rest_framework import serializers
|
|
from django.contrib.auth import get_user_model
|
|
|
|
|
|
class UserRegistrationSerializer(serializers.ModelSerializer):
|
|
|
|
"""
|
|
Serializer for Django User model and most of its fields.
|
|
"""
|
|
|
|
class Meta:
|
|
model = get_user_model()
|
|
fields = ('username', 'password', 'email', 'first_name', 'last_name')
|
|
|
|
|
|
class VerifyEmailSerializer(serializers.Serializer):
|
|
pass
|