<commit_before>from django.contrib import admin

from .models import (
    Tag,
    AcademicLevel,
    ComputingExperienceLevel,
    DataAnalysisLevel,
    Role,
    Lesson,
    KnowledgeDomain,
    Badge,
    TrainingRequirement,
    TrainingRequest,
)


class RoleAdmin(admin.ModelAdmin):
    list_display = ('name', 'verbose_name')


admin.site.register(Tag)
admin.site.register(AcademicLevel)
admin.site.register(ComputingExperienceLevel)
admin.site.register(DataAnalysisLevel)
admin.site.register(Role, RoleAdmin)
admin.site.register(Lesson)
admin.site.register(KnowledgeDomain)
admin.site.register(Badge)
admin.site.register(TrainingRequirement)
admin.site.register(TrainingRequest)<commit_msg>Enable admin management of curricula<commit_after>from django.contrib import admin

from .models import (
    Tag,
    AcademicLevel,
    ComputingExperienceLevel,
    DataAnalysisLevel,
    Role,
    Lesson,
    KnowledgeDomain,
    Badge,
    TrainingRequirement,
    TrainingRequest,
    Curriculum,
)


class RoleAdmin(admin.ModelAdmin):
    list_display = ('name', 'verbose_name')


class CurriculumAdmin(admin.ModelAdmin):
    list_display = ('__str__', 'slug', 'name', 'active', 'unknown')


admin.site.register(Tag)
admin.site.register(AcademicLevel)
admin.site.register(ComputingExperienceLevel)
admin.site.register(DataAnalysisLevel)
admin.site.register(Role, RoleAdmin)
admin.site.register(Lesson)
admin.site.register(KnowledgeDomain)
admin.site.register(Badge)
admin.site.register(TrainingRequirement)
admin.site.register(TrainingRequest)
admin.site.register(Curriculum, CurriculumAdmin)
{'fraction_non_alphanumeric': 0.10444027517198248, 'fraction_numerical': 0.0, 'mean_word_length': 5.557377049180328, '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': '3904600', 'n_tokens_mistral': 498, 'n_tokens_neox': 487, 'n_words': 80}