<commit_before>#pylint: disable-msg=R0201
from django.contrib import admin
from . import models as m

from sorl.thumbnail import default
ADMIN_THUMBS_SIZE = '60x60'


class ImageInline(admin.TabularInline):
    model = m.ImageSerie
    extra = 1


class EpisodeInline(admin.TabularInline):
    model = m.Episode

#class EpisodeInline(admin.ModelAdmin):
#    prepopulated_fields = {'slug_title': ('title', )}
#    inlines = [
#        LinkInline,
#    ]


class SerieAdmin(admin.ModelAdmin):
    list_display = ['name', 'network', 'runtime', 'image_serie_serie', ]
    list_filter = ('runtime', 'genres', 'network', )
    prepopulated_fields = {'slug_name': ('name', )}
    inlines = [
        EpisodeInline,
    ]<commit_msg>Arreglando errores cuando pasamos de episode a season<commit_after>#pylint: disable-msg=R0201
from django.contrib import admin
from . import models as m

from sorl.thumbnail import default
ADMIN_THUMBS_SIZE = '60x60'


class ImageInline(admin.TabularInline):
    model = m.ImageSerie
    extra = 1


class EpisodeInline(admin.TabularInline):
    model = m.Episode


class SeasonInline(admin.TabularInline):
    model = m.Season

#class EpisodeInline(admin.ModelAdmin):
#    prepopulated_fields = {'slug_title': ('title', )}
#    inlines = [
#        LinkInline,
#    ]


class SerieAdmin(admin.ModelAdmin):
    list_display = ['name', 'network', 'runtime', 'image_serie_serie', ]
    list_filter = ('runtime', 'genres', 'network', )
    prepopulated_fields = {'slug_name': ('name', )}
    inlines = [
        SeasonInline,
    ]
{'fraction_non_alphanumeric': 0.12749517063747584, 'fraction_numerical': 0.01159047005795235, 'mean_word_length': 3.9648562300319488, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4085051', 'n_tokens_mistral': 520, 'n_tokens_neox': 529, 'n_words': 111}