Substitute default user model
parent
268955fa1e
commit
a64d986755
@ -1,3 +1,5 @@
|
|||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
from django.contrib.auth.admin import UserAdmin
|
||||||
|
from utils.models import MyUser
|
||||||
|
|
||||||
# Register your models here.
|
admin.site.register(MyUser, UserAdmin)
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.contrib.auth.models import AbstractUser
|
||||||
|
|
||||||
# Create your models here.
|
# https://docs.djangoproject.com/en/3.1/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project
|
||||||
|
class MyUser(AbstractUser):
|
||||||
|
pass
|
||||||
|
Loading…
Reference in New Issue