<commit_before>from django.contrib import admin

from bookmarks import models

class BookmarkAdmin(admin.ModelAdmin):
    list_display = ('content_object', 'key', 'user', 
        'created_at', 'modified_at')
    list_filter = ('content_type', 'created_at', 'modified_at')
    ordering = ('-modified_at',)
    search_fields = ('user', 'key')
    readonly_fields = ('user',)

admin.site.register(models.Bookmark, BookmarkAdmin)
<commit_msg>Fixed a reference to an unexistent key in the admin.<commit_after>from django.contrib import admin

from bookmarks import models

class BookmarkAdmin(admin.ModelAdmin):
    list_display = ('content_object', 'key', 'user', 'created_at')
    list_filter = ('content_type', 'created_at')
    ordering = ('-created_at',)
    search_fields = ('user', 'key')
    readonly_fields = ('user',)

admin.site.register(models.Bookmark, BookmarkAdmin)

{'fraction_non_alphanumeric': 0.1379703534777651, 'fraction_numerical': 0.0, 'mean_word_length': 5.097222222222222, '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': '762498', 'n_tokens_mistral': 269, 'n_tokens_neox': 266, 'n_words': 65}