<commit_before>""" Admin configuration for core models. """

from django.contrib import admin

from credentials.apps.catalog.models import Course, CourseRun, Organization, Program


class CourseAdmin(admin.ModelAdmin):
    """ Admin for the Course model."""
    list_display = ('key', 'title')
    search_fields = ('key', 'title', 'uuid')


class CourseRunAdmin(admin.ModelAdmin):
    """ Admin for the CourseRun model."""
    list_display = ('key', 'title')
    search_fields = ('key', 'title_override', 'course__title', 'uuid')


class OrganizationAdmin(admin.ModelAdmin):
    """ Admin for the Organization model."""
    list_display = ('key', 'name')
    search_fields = ('key', 'name', 'uuid')


class ProgramAdmin(admin.ModelAdmin):
    """ Admin for the Program model."""
    list_display = ('title', 'uuid')
    search_fields = ('title', 'uuid')


admin.site.register(Course, CourseAdmin)
admin.site.register(CourseRun, CourseRunAdmin)
admin.site.register(Organization, OrganizationAdmin)
admin.site.register(Program, ProgramAdmin)<commit_msg>Hides catalog models from django admin. Deleted code that registered the models.<commit_after>""" Admin configuration for core models. """

from django.contrib import admin


class CourseAdmin(admin.ModelAdmin):
    """ Admin for the Course model."""
    list_display = ('key', 'title')
    search_fields = ('key', 'title', 'uuid')


class CourseRunAdmin(admin.ModelAdmin):
    """ Admin for the CourseRun model."""
    list_display = ('key', 'title')
    search_fields = ('key', 'title_override', 'course__title', 'uuid')


class OrganizationAdmin(admin.ModelAdmin):
    """ Admin for the Organization model."""
    list_display = ('key', 'name')
    search_fields = ('key', 'name', 'uuid')


class ProgramAdmin(admin.ModelAdmin):
    """ Admin for the Program model."""
    list_display = ('title', 'uuid')
    search_fields = ('title', 'uuid')
{'fraction_non_alphanumeric': 0.1528729573010016, 'fraction_numerical': 0.0, 'mean_word_length': 4.6996996996997, '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': '2626583', 'n_tokens_mistral': 533, 'n_tokens_neox': 520, 'n_words': 157}