mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-26 08:34:55 +00:00
26 lines
647 B
Python
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
|