<commit_before>from django.contrib import admin
from django.db import models

from pagedown.widgets import AdminPagedownWidget

from .models import Production, FilmGenre, Film, InstallationGenre, Installation, Performance, StaffTask, OrganizationTask, Event, Itinerary

class CollaboratorsInline(admin.TabularInline):
    model = Production.collaborators.through

class PartnersInline(admin.TabularInline):
    model = Production.partners.through

@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
    list_display = ('title', 'subtitle')
    search_fields = ['title']
    inlines = (CollaboratorsInline, PartnersInline)

    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

class ArtworkAdmin(ProductionAdmin):
    list_display = (ProductionAdmin.list_display + ('production_date',))
    filter_horizontal = ('authors', 'beacons')

@admin.register(Event)
class EventAdmin(ProductionAdmin):
    list_display = (ProductionAdmin.list_display + ('starting_date', 'ending_date'))

class ItineraryArtworkInline(admin.TabularInline):
    model = Itinerary.artworks.through

@admin.register(Itinerary)
class ItineraryAdmin(admin.ModelAdmin):
    inlines = (ItineraryArtworkInline,)

    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

@admin.register(FilmGenre)
class FilmGenreAdmin(admin.ModelAdmin):
    pass

@admin.register(InstallationGenre)
class InstallationGenreAdmin(admin.ModelAdmin):
    pass

@admin.register(OrganizationTask)
class OrganizationTaskAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

@admin.register(StaffTask)
class StaffTaskAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }
<commit_msg>add missing admin objects<commit_after>from django.contrib import admin
from django.db import models

from pagedown.widgets import AdminPagedownWidget

from .models import Production, FilmGenre, Film, InstallationGenre, Installation, Performance, StaffTask, OrganizationTask, Event, Itinerary

class CollaboratorsInline(admin.TabularInline):
    model = Production.collaborators.through

class PartnersInline(admin.TabularInline):
    model = Production.partners.through

@admin.register(Production)
class ProductionAdmin(admin.ModelAdmin):
    list_display = ('title', 'subtitle')
    search_fields = ['title']
    inlines = (CollaboratorsInline, PartnersInline)

    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

class ArtworkAdmin(ProductionAdmin):
    list_display = (ProductionAdmin.list_display + ('production_date',))
    filter_horizontal = ('authors', 'beacons')

@admin.register(Event)
class EventAdmin(ProductionAdmin):
    list_display = (ProductionAdmin.list_display + ('starting_date', 'ending_date'))

class ItineraryArtworkInline(admin.TabularInline):
    model = Itinerary.artworks.through

@admin.register(Itinerary)
class ItineraryAdmin(admin.ModelAdmin):
    inlines = (ItineraryArtworkInline,)

    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

@admin.register(FilmGenre)
class FilmGenreAdmin(admin.ModelAdmin):
    pass

@admin.register(InstallationGenre)
class InstallationGenreAdmin(admin.ModelAdmin):
    pass

@admin.register(OrganizationTask)
class OrganizationTaskAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

@admin.register(StaffTask)
class StaffTaskAdmin(admin.ModelAdmin):
    formfield_overrides = {
        models.TextField: {'widget': AdminPagedownWidget },
    }

@admin.register(Film)
class FilmAdmin(ProductionAdmin):
    pass

@admin.register(Performance)
class PerformanceAdmin(ProductionAdmin):
    pass

@admin.register(Installation)
class InstallationAdmin(ProductionAdmin):
    pass

{'fraction_non_alphanumeric': 0.10172501268391679, 'fraction_numerical': 0.0, 'mean_word_length': 5.5281456953642385, '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': '1313751', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1143, 'n_words': 211}