<commit_before>__author__ = 'jesuejunior'
from quiz.models import Question, Lesson, Answer, Unity, Media, Result

from django.contrib import admin


class UnityAdmin(admin.ModelAdmin):
    list_display = ('id', 'number', 'name', 'description', )
    list_filter = ('number', 'name', 'description', )
    search_fields = ('id', 'number', 'name', 'description', )

admin.site.register(Unity, UnityAdmin)


class AnswerAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', )
    list_filter = ('name',)

admin.site.register(Answer, AnswerAdmin)


class LessonAdmin(admin.ModelAdmin):
    list_display = ('id', 'name',)
    list_filter = ('name', )



admin.site.register(Lesson, LessonAdmin)


class MediaAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'url', )
    list_filter = ('name', )
<commit_msg>Fix names displayed in admin<commit_after>__author__ = 'jesuejunior'
from quiz.models import Question, Lesson, Answer, Unity, Media, Result

from django.contrib import admin


class UnityAdmin(admin.ModelAdmin):
    list_display = ('id', 'number', 'name', 'description', )
    list_filter = ('number', 'name', 'description', )
    search_fields = ('id', 'number', 'name', 'description', )

admin.site.register(Unity, UnityAdmin)


class AnswerAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'extra')
    list_filter = ('name', 'extra',)

admin.site.register(Answer, AnswerAdmin)


class LessonAdmin(admin.ModelAdmin):
    list_display = ('id', 'name',)
    list_filter = ('name', )



admin.site.register(Lesson, LessonAdmin)


class MediaAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'url', )
    list_filter = ('name', )

{'fraction_non_alphanumeric': 0.16416115453998797, 'fraction_numerical': 0.0, 'mean_word_length': 4.900709219858156, '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': '709811', 'n_tokens_mistral': 550, 'n_tokens_neox': 523, 'n_words': 124}