old_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.contrib import admin
  
  # Register your models here.
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import unicode_literals
  
  from django.contrib import admin
  from django.contrib.auth.admin import UserAdmin as Admin
  
  from .filters import ChoiceDropdownFilter
  from .models import User
  
  
  class UserAdmin(Admin):
  
      """Represent a model in the admin interface."""
  
      list_display = ('username', 'email', 'phone', 'role', 'status')
      list_filter = [('status', ChoiceDropdownFilter), 'role']
  
  admin.site.register(User, UserAdmin)
  
subject: Add filters to User model in admin dashboard