<commit_before>from django.contrib import admin

from government.models import Government
from government.models import GovernmentMember
from government.models import GovernmentPosition
from government.models import Ministry


class GovernmentAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'name',
        'wikidata_id'
    )


class GovernmentMemberAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'person',
        'position',
        'start_date',
        'end_date'
    )


class MinistryAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'name',
        'government'
    )


class GovernmentPositionAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'position',
        'ministry'
    )


admin.site.register(Government, GovernmentAdmin)
admin.site.register(GovernmentMember, GovernmentMemberAdmin)
admin.site.register(GovernmentPosition, GovernmentPositionAdmin)
admin.site.register(Ministry, MinistryAdmin)<commit_msg>improve government app admin<commit_after>from django.contrib import admin

from government.models import Government
from government.models import GovernmentMember
from government.models import GovernmentPosition
from government.models import Ministry


class GovernmentAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'name',
        'wikidata_id'
    )


class MinistryAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'name',
        'government'
    )


class GovernmentPositionAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'position',
        'ministry',
        'government'
    )


class GovernmentMemberAdmin(admin.ModelAdmin):
    list_display = (
        'id',
        'person',
        'position',
        'start_date',
        'end_date'
    )

admin.site.register(Government, GovernmentAdmin)
admin.site.register(GovernmentMember, GovernmentMemberAdmin)
admin.site.register(GovernmentPosition, GovernmentPositionAdmin)
admin.site.register(Ministry, MinistryAdmin)
{'fraction_non_alphanumeric': 0.09390363815142576, 'fraction_numerical': 0.0, 'mean_word_length': 3.1872427983539096, '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': '7418485', 'n_tokens_mistral': 563, 'n_tokens_neox': 537, 'n_words': 111}