mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
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.
16 lines
477 B
Python
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') |