-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
signup serializer implementation completed
- Loading branch information
1 parent
7287058
commit ff99b0e
Showing
5 changed files
with
79 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from datetime import datetime, timedelta | ||
|
||
from django.contrib.auth import get_user_model | ||
from django.contrib.auth.models import AbstractBaseUser | ||
from django.forms import CharField, EmailField | ||
from rest_framework.serializers import Serializer | ||
|
||
User = get_user_model() | ||
|
||
class SignupInputSerializer(Serializer): | ||
username = CharField() | ||
first_name = CharField() | ||
last_name = CharField() | ||
email = EmailField() | ||
phone = CharField() | ||
password = CharField() | ||
|
||
class Meta: | ||
ref_name = None |
File renamed without changes.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters