<commit_before>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)<commit_msg>Update users/admin.py<commit_after>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)
{'fraction_non_alphanumeric': 0.10251188051595383, 'fraction_numerical': 0.0, 'mean_word_length': 5.637387387387387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5473327', 'n_tokens_mistral': 900, 'n_tokens_neox': 890, 'n_words': 138}