old_contents: from django.contrib import admin
  
  from .models import BeetleEmailAccount, AdminAuthInstance, PasscodeAuthInstance, UserAuthInstance
  
  from solo.admin import SingletonModelAdmin
  
  # Register your models here.
  
  class BeetleEmailAccountAdmin(SingletonModelAdmin):
  	list_display = ("address",)
  admin.site.register(BeetleEmailAccount, BeetleEmailAccountAdmin)
  
  @admin.register(AdminAuthInstance)
  class AdminAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
  @admin.register(UserAuthInstance)
  class UserAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
  @admin.register(PasscodeAuthInstance)
  class PasscodeAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
new_contents: from django.contrib import admin
  from django import forms
  
  from .models import BeetleEmailAccount, AdminAuthInstance, PasscodeAuthInstance, UserAuthInstance
  
  from solo.admin import SingletonModelAdmin
  
  # Register your models here.
  
  class BeetleEmailAccountForm(forms.ModelForm):
  	password = forms.CharField(widget=forms.PasswordInput())
  
  class BeetleEmailAccountAdmin(SingletonModelAdmin):
  	form = BeetleEmailAccountForm
  	list_display = ("address",)
  admin.site.register(BeetleEmailAccount, BeetleEmailAccountAdmin)
  
  @admin.register(AdminAuthInstance)
  class AdminAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
  @admin.register(UserAuthInstance)
  class UserAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
  @admin.register(PasscodeAuthInstance)
  class PasscodeAuthInstanceAdmin(admin.ModelAdmin):
  	list_display = ("rule", "principal", "timestamp", "expire") 
  	list_searchable = ("rule", "principal")
  	list_filter = ("rule", "principal")
  	readonly_fields = list_display
  
subject: Hide email password