app user changed to users and integrated
This commit is contained in:
parent
aa660a1289
commit
e5658a8c4e
9 changed files with 11 additions and 3 deletions
|
|
@ -37,8 +37,12 @@ INSTALLED_APPS = [
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'rest_framework',
|
||||
'users',
|
||||
]
|
||||
|
||||
AUTH_USER_MODEL = 'users.CustomUser'
|
||||
|
||||
MIDDLEWARE = [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
0
backend/videoflix/users/migrations/__init__.py
Normal file
0
backend/videoflix/users/migrations/__init__.py
Normal file
7
backend/videoflix/users/models.py
Normal file
7
backend/videoflix/users/models.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from django.db import models
|
||||
from django.contrib.auth import AbstractUser
|
||||
|
||||
class CustomUser(AbstractUser):
|
||||
custom = models.CharField(max_length=1000, default='')
|
||||
phone = models.CharField(max_length=20, default='')
|
||||
address = models.CharField(max_length=150, default='')
|
||||
Loading…
Reference in a new issue