<s> from django . contrib import admin <EOL> from django . contrib . contenttypes . admin import GenericTabularInline <EOL> from . models import ( <EOL> Category , Contact , Episode , EpisodePermanent , Media , PhoneNumber , <EOL> ) <EOL> site = admin . AdminSite ( name = "<STR_LIT>" ) <EOL> class MediaInline ( GenericTabularInline ) : <EOL> model = Media <EOL> class EpisodeAdmin ( admin . ModelAdmin ) : <EOL> inlines = [ <EOL> MediaInline , <EOL> ] <EOL> class PhoneNumberInline ( GenericTabularInline ) : <EOL> model = PhoneNumber <EOL> class MediaPermanentInline ( GenericTabularInline ) : <EOL> model = Media <EOL> can_delete = False <EOL> site . register ( Episode , EpisodeAdmin ) <EOL> site . register ( Contact , inlines = [ PhoneNumberInline ] ) <EOL> site . register ( Category ) <EOL> site . register ( EpisodePermanent , inlines = [ MediaPermanentInline ] ) </s>
