<commit_before>from django.contrib import admin
from import_export import resources
from import_export.admin import ImportExportModelAdmin

from flatcontent.models import FlatContent


class FlatContentResource(resources.ModelResource):
    class Meta:
        model = FlatContent


class FlatContentAdmin(ImportExportModelAdmin):
    list_display = ('slug', 'site', 'content',)
    ordering = ('slug', 'site',)
    resource_class = FlatContentResource


admin.site.register(FlatContent, FlatContentAdmin)<commit_msg>Enable admin search fields<commit_after>from django.contrib import admin
from import_export import resources
from import_export.admin import ImportExportModelAdmin

from flatcontent.models import FlatContent


class FlatContentResource(resources.ModelResource):
    class Meta:
        model = FlatContent


class FlatContentAdmin(ImportExportModelAdmin):
    list_display = ('slug', 'site', 'content',)
    ordering = ('slug', 'site',)
    resource_class = FlatContentResource
    search_fields = ['slug']


admin.site.register(FlatContent, FlatContentAdmin)
{'fraction_non_alphanumeric': 0.08271375464684015, 'fraction_numerical': 0.0, 'mean_word_length': 5.6894409937888195, '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': '2316776', 'n_tokens_mistral': 291, 'n_tokens_neox': 276, 'n_words': 74}