Files
zod-backend/zod_bank/account/admin.py
2023-06-23 19:13:49 +05:30

26 lines
647 B
Python

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