<commit_before># -*- coding: utf-8 -*-
from django.contrib import admin

from .models import Broadcast, Highlight, Raid, Series


class HighlightInline(admin.StackedInline):
    extra = 1
    model = Highlight


class RaidInline(admin.TabularInline):
    extra = 1
    model = Raid


class BroadcastAdmin(admin.ModelAdmin):
    inlines = [RaidInline, HighlightInline]
    list_display = ['number', 'airdate', 'status', 'series']
    list_editable = ['airdate', 'status', 'series']
    list_display_links = ['number']

    raw_id_fields = ['games', 'series']
    autocomplete_lookup_fields = {
        'fk': ['series'],
        'm2m': ['games']
    }
admin.site.register(Broadcast, BroadcastAdmin)


class HighlightAdmin(admin.ModelAdmin):
    list_display = ['broadcast', 'twid', 'game', 'url', 'title']
    list_editable = list_display

    raw_id_fields = ['broadcast', 'game']
    autocomplete_lookup_fields = {'fk': ['game']}
admin.site.register(Highlight, HighlightAdmin)

<commit_msg>Try this instead.<commit_after># -*- coding: utf-8 -*-
from django.contrib import admin

from .models import Broadcast, Highlight, Raid, Series


class HighlightInline(admin.StackedInline):
    extra = 1
    model = Highlight


class RaidInline(admin.TabularInline):
    extra = 1
    model = Raid


class BroadcastAdmin(admin.ModelAdmin):
    inlines = [RaidInline, HighlightInline]
    list_display = ['number', 'airdate', 'status', 'series']
    list_editable = ['airdate', 'status', 'series']
    list_display_links = ['number']

    raw_id_fields = ['games', 'series']
    autocomplete_lookup_fields = {
        'fk': ['series'],
        'm2m': ['games']
    }
admin.site.register(Broadcast, BroadcastAdmin)


class HighlightAdmin(admin.ModelAdmin):
    list_display = ['title', 'broadcast', 'game', 'twid', 'url']
    list_display_links = ['title', 'broadcast']

    raw_id_fields = ['broadcast', 'game']
    autocomplete_lookup_fields = {'fk': ['game']}
admin.site.register(Highlight, HighlightAdmin)


{'fraction_non_alphanumeric': 0.1470735367683842, 'fraction_numerical': 0.00400200100050025, 'mean_word_length': 4.167958656330749, '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': '2118950', 'n_tokens_mistral': 658, 'n_tokens_neox': 640, 'n_words': 143}