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:
2015-06-18 13:59:53 +01:00
parent d7145d1f7d
commit a28bc50a44
6 changed files with 146 additions and 76 deletions

View File

@@ -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')