mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 16:44:54 +00:00
Initial Commit
This commit is contained in:
25
zod_bank/account/admin.py
Normal file
25
zod_bank/account/admin.py
Normal file
@ -0,0 +1,25 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from .models import UserProfile, UserEmailOtp, UserPhoneOtp
|
||||
# Register your models here.
|
||||
@admin.register(UserProfile)
|
||||
class UserProfileAdmin(admin.ModelAdmin):
|
||||
list_display = ['user']
|
||||
|
||||
def __str__(self):
|
||||
return self.user__email
|
||||
|
||||
@admin.register(UserEmailOtp)
|
||||
class UserEmailOtpAdmin(admin.ModelAdmin):
|
||||
list_display = ['email']
|
||||
|
||||
def __str__(self):
|
||||
return self.email + '-' + self.otp
|
||||
|
||||
@admin.register(UserPhoneOtp)
|
||||
class UserPhoneOtpAdmin(admin.ModelAdmin):
|
||||
list_display = ['phone']
|
||||
|
||||
def __str__(self):
|
||||
return self.phone + '-' + self.otp
|
||||
Reference in New Issue
Block a user