from django.contrib import admin
from admins.models import OTPMaster
from project import settings


# Register your models here.


@admin.register(OTPMaster)
class OTPMasterAdmin(admin.ModelAdmin):
    list_display = ['pk', 'email', 'name', 'otp', 'createdAt', 'expireAt', 'updatedAt']
    search_fields = ['email', 'name']
    ordering = ['pk']
    list_per_page = settings.ADMIN_PAGE_SIZE
