profile end points user model otp stuff base
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
from django.contrib import admin
|
||||
from .models import *
|
||||
from unfold.admin import ModelAdmin
|
||||
|
||||
# Register your models here.
|
||||
|
||||
@admin.register(User)
|
||||
class UserAdmin(ModelAdmin):
|
||||
list_display = ['phone', 'email', 'is_superuser']
|
||||
readonly_fields = ['password', 'last_login', 'otp_expiry']
|
||||
Reference in New Issue
Block a user