old_contents: from django.contrib import admin
  
  from .models import DoctorProfile, AssignmentTemplates, AssignmentResearches, Speciality, Position, AvailableResearchByGroup, DistrictResearchLimitAssign, GroupHideMainMenuButtons
  
  
  class DocAdmin(admin.ModelAdmin):
      list_filter = (
          'podrazdeleniye',
          'specialities',
          'user__is_staff',
      )
      list_display = (
          'fio',
          'podrazdeleniye',
      )
      list_display_links = ('fio',)
      search_fields = ('fio',)
      filter_horizontal = ('white_list_monitoring', 'black_list_monitoring', 'disabled_fin_source')
  
  
  class ResDistrictResearchLimitAssign(admin.ModelAdmin):
      list_display = ('district_group', 'research', 'type_period_limit', 'limit_count')
      list_display_links = ('district_group', 'research', 'type_period_limit', 'limit_count')
  
  
  class ResGroupHideMainMenuButtons(admin.ModelAdmin):
      list_display = ('title_buttons', 'group',)
      list_display_links = ('title_buttons', 'group',)
  
  
  admin.site.register(DoctorProfile, DocAdmin)  # Активация редактирования профилей врачей в админке
  admin.site.register(AssignmentTemplates)
  admin.site.register(AssignmentResearches)
  admin.site.register(Speciality)
  admin.site.register(Position)
  admin.site.register(AvailableResearchByGroup)
  
  admin.site.register(DistrictResearchLimitAssign, ResDistrictResearchLimitAssign)
  admin.site.register(GroupHideMainMenuButtons, ResGroupHideMainMenuButtons)
  
new_contents: from django.contrib import admin
  
  from .models import DoctorProfile, AssignmentTemplates, AssignmentResearches, Speciality, Position, AvailableResearchByGroup, DistrictResearchLimitAssign, GroupHideMainMenuButtons
  
  
  class DocAdmin(admin.ModelAdmin):
      list_filter = (
          'podrazdeleniye',
          'specialities',
          'user__is_staff',
      )
      list_display = (
          'fio',
          'podrazdeleniye',
      )
      list_display_links = ('fio',)
      search_fields = ('fio',)
      filter_horizontal = ('white_list_monitoring', 'black_list_monitoring', 'disabled_fin_source')
  
  
  class ResDistrictResearchLimitAssign(admin.ModelAdmin):
      list_display = ('district_group', 'research', 'type_period_limit', 'limit_count')
      list_display_links = ('district_group', 'research', 'type_period_limit', 'limit_count')
  
  
  class ResGroupHideMainMenuButtons(admin.ModelAdmin):
      list_display = (
          'title_buttons',
          'group',
      )
      list_display_links = (
          'title_buttons',
          'group',
      )
  
  
  admin.site.register(DoctorProfile, DocAdmin)  # Активация редактирования профилей врачей в админке
  admin.site.register(AssignmentTemplates)
  admin.site.register(AssignmentResearches)
  admin.site.register(Speciality)
  admin.site.register(Position)
  admin.site.register(AvailableResearchByGroup)
  
  admin.site.register(DistrictResearchLimitAssign, ResDistrictResearchLimitAssign)
  admin.site.register(GroupHideMainMenuButtons, ResGroupHideMainMenuButtons)
  
subject: Update users/admin.py