profile end points user model otp stuff base

This commit is contained in:
Parsa Nazer
2024-12-13 23:02:19 +03:30
parent eef8263869
commit 259099cb9e
16 changed files with 425 additions and 7 deletions
+7 -1
View File
@@ -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']