<commit_before>from django.contrib import admin

from .models import Comment


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    fields = (
        'content_type', 'content_object', 'comment', 'is_removed',
        'is_censored', 'is_moderator_marked', 'creator', 'comment_categories',
        'is_blocked'
    )
    readonly_fields = ('creator', 'content_type', 'content_object')
    list_display = (
        '__str__', 'creator', 'is_removed', 'is_censored', 'created',
        'is_blocked'
    )
    search_fields = ('comment',)
    date_hierarchy = 'created'<commit_msg>adhocracy4/comments: correct position of is_blocked field<commit_after>from django.contrib import admin

from .models import Comment


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    fields = (
        'content_type', 'content_object', 'comment', 'is_removed',
        'is_censored', 'is_blocked', 'is_moderator_marked',
        'creator', 'comment_categories'
    )
    readonly_fields = ('creator', 'content_type', 'content_object')
    list_display = (
        '__str__', 'creator', 'is_removed', 'is_censored',
        'is_blocked', 'created'
    )
    search_fields = ('comment',)
    date_hierarchy = 'created'
{'fraction_non_alphanumeric': 0.13539967373572595, 'fraction_numerical': 0.0008156606851549756, 'mean_word_length': 4.0081632653061225, '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': '332251', 'n_tokens_mistral': 396, 'n_tokens_neox': 389, 'n_words': 76}