mirror of
https://github.com/ajurna/cbwebreader.git
synced 2026-11-02 10:36:55 +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 parent
d7145d1f7d
commit
a28bc50a44
6 files changed
+146
-76
No files matched your search
+9
-1
@@ -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