<commit_before>from __future__ import absolute_import

from django.contrib import admin
from .models import Feed, FeedItem, FeedType

admin.site.register(Feed,
    list_display  = ["title", "feed_type", "public_url", "approval_status"],
    list_filter   = ["feed_type", "is_defunct", "approval_status"],
    ordering      = ["title"],
    search_fields = ["title", "public_url"],
    raw_id_fields = ['owner'],
    list_per_page = 500,
)

admin.site.register(FeedItem,
    list_display   = ['title', 'feed', 'date_modified'],
    list_filter    = ['feed'],
    search_fields  = ['feed__title', 'feed__public_url', 'title'],
    date_heirarchy = ['date_modified'],
)

admin.site.register(FeedType,
    prepopulated_fields = {'slug': ('name',)},
)
<commit_msg>Making status list-editable<commit_after>from __future__ import absolute_import

from django.contrib import admin
from .models import Feed, FeedItem, FeedType

admin.site.register(Feed,
    list_display  = ["title", "feed_type", "public_url", "approval_status"],
    list_filter   = ["feed_type", "is_defunct", "approval_status"],
    ordering      = ["title"],
    search_fields = ["title", "public_url"],
    raw_id_fields = ['owner'],
    list_editable = ["approval_status"],
    list_per_page = 500,
)

admin.site.register(FeedItem,
    list_display   = ['title', 'feed', 'date_modified'],
    list_filter    = ['feed'],
    search_fields  = ['feed__title', 'feed__public_url', 'title'],
    date_heirarchy = ['date_modified'],
)

admin.site.register(FeedType,
    prepopulated_fields = {'slug': ('name',)},
)

{'fraction_non_alphanumeric': 0.15702479338842976, 'fraction_numerical': 0.003814367450731087, 'mean_word_length': 4.641577060931899, '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': '6520379', 'n_tokens_mistral': 524, 'n_tokens_neox': 512, 'n_words': 104}