<commit_before>from models import Resource, ResourceCollection, Contact
from django.contrib import admin

class ResourceAdmin(admin.ModelAdmin):
    list_display = ('title', 'metadata_link', 'published')
    filter_horizontal = ['editors', 'collections']
    list_filter = ('published', 'collections')

class ResourceCollectionAdmin(admin.ModelAdmin):
    filter_horizontal = [ 'editors', 'parents' ]
    
admin.site.register(Resource, ResourceAdmin)
admin.site.register(ResourceCollection, ResourceCollectionAdmin)
admin.site.register(Contact)
<commit_msg>Some simple admin adjustments<commit_after>from models import Resource, ResourceCollection, Contact
from django.contrib import admin

class ResourceAdmin(admin.ModelAdmin):
    list_display = ('title', 'metadata_id', 'metadata_link', 'published')
    filter_horizontal = ['editors', 'collections']
    list_filter = ('published', 'collections')
    search_fields = ['title', 'metadata_id']
    
class ResourceCollectionAdmin(admin.ModelAdmin):
    filter_horizontal = [ 'editors', 'parents' ]
    list_display = ('title', 'collection_id')
    search_fields = ['title', 'collection_id']
    
admin.site.register(Resource, ResourceAdmin)
admin.site.register(ResourceCollection, ResourceCollectionAdmin)
admin.site.register(Contact)

{'fraction_non_alphanumeric': 0.11888111888111888, 'fraction_numerical': 0.0, 'mean_word_length': 6.445086705202312, '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': '6493123', 'n_tokens_mistral': 341, 'n_tokens_neox': 339, 'n_words': 77}