mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
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.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
from django.contrib import admin
|
||||
from comic.models import Setting
|
||||
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')
|
||||
Reference in New Issue
Block a user