Files
cbwebreader/comic/admin.py
ajurna a28bc50a44 changed views to use Database data to read files.
moved alot of the functionality to the models.
changed the file access so that it ignores the extension and just attempts rar and zip access.
2015-06-18 13:59:53 +01:00

16 lines
477 B
Python

from django.contrib import admin
from comic.models import Setting, ComicBook, ComicPage
# Register your models here.
@admin.register(Setting)
class SettingAdmin(admin.ModelAdmin):
list_display = ('name', 'value')
@admin.register(ComicBook)
class ComicBookAdmin(admin.ModelAdmin):
list_display = ('file_name', 'last_read_page')
@admin.register(ComicPage)
class ComicPageAdmin(admin.ModelAdmin):
list_display = ('Comic', 'index', 'page_file_name', 'content_type')