from django.contrib import admin
from priton.models import Person, Phrase, Comics, Essense

class PersonAdmin(admin.ModelAdmin):
    list_display = ('full_name', 'short_name',)
    #list_editable = ('sort', )


class PhraseAdmin(admin.ModelAdmin):
    list_display = ('phrase', 'author',)


class EssenseInline(admin.TabularInline):
    model = Essense.comics.through


class ComicsAdmin(admin.ModelAdmin):
    list_display = ('title', 'comics_descr',)
    inlines = (EssenseInline,)
#    exclude = ('participants', )
    #list_editable = ('sort', )


class EssenseAdmin(admin.ModelAdmin):
    list_display = ('name',)
    exclude = ('comics',)

admin.site.register(Person, PersonAdmin)
admin.site.register(Phrase, PhraseAdmin)
admin.site.register(Comics, ComicsAdmin)
#admin.site.register(Essense, EssenseAdmin)
592cad3acb8bf03c44511dfd5cf6a4c36357e358
<mask token>


class EssenseInline(admin.TabularInline):
    <mask token>


class ComicsAdmin(admin.ModelAdmin):
    list_display = 'title', 'comics_descr'
    inlines = EssenseInline,


class EssenseAdmin(admin.ModelAdmin):
    list_display = 'name',
    exclude = 'comics',


<mask token>

<mask token>


class EssenseInline(admin.TabularInline):
    model = Essense.comics.through


class ComicsAdmin(admin.ModelAdmin):
    list_display = 'title', 'comics_descr'
    inlines = EssenseInline,


class EssenseAdmin(admin.ModelAdmin):
    list_display = 'name',
    exclude = 'comics',


<mask token>

<mask token>


class PersonAdmin(admin.ModelAdmin):
    <mask token>


class PhraseAdmin(admin.ModelAdmin):
    list_display = 'phrase', 'author'


class EssenseInline(admin.TabularInline):
    model = Essense.comics.through


class ComicsAdmin(admin.ModelAdmin):
    list_display = 'title', 'comics_descr'
    inlines = EssenseInline,


class EssenseAdmin(admin.ModelAdmin):
    list_display = 'name',
    exclude = 'comics',


<mask token>

<mask token>


class PersonAdmin(admin.ModelAdmin):
    list_display = 'full_name', 'short_name'


class PhraseAdmin(admin.ModelAdmin):
    list_display = 'phrase', 'author'


class EssenseInline(admin.TabularInline):
    model = Essense.comics.through


class ComicsAdmin(admin.ModelAdmin):
    list_display = 'title', 'comics_descr'
    inlines = EssenseInline,


class EssenseAdmin(admin.ModelAdmin):
    list_display = 'name',
    exclude = 'comics',


<mask token>

from django.contrib import admin
from priton.models import Person, Phrase, Comics, Essense

class PersonAdmin(admin.ModelAdmin):
    list_display = ('full_name', 'short_name',)
    #list_editable = ('sort', )


class PhraseAdmin(admin.ModelAdmin):
    list_display = ('phrase', 'author',)


class EssenseInline(admin.TabularInline):
    model = Essense.comics.through


class ComicsAdmin(admin.ModelAdmin):
    list_display = ('title', 'comics_descr',)
    inlines = (EssenseInline,)
#    exclude = ('participants', )
    #list_editable = ('sort', )


class EssenseAdmin(admin.ModelAdmin):
    list_display = ('name',)
    exclude = ('comics',)

admin.site.register(Person, PersonAdmin)
admin.site.register(Phrase, PhraseAdmin)
admin.site.register(Comics, ComicsAdmin)
#admin.site.register(Essense, EssenseAdmin)