diff options
Diffstat (limited to 'pyblackbird_cc/resources/admin.py')
-rw-r--r-- | pyblackbird_cc/resources/admin.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/admin.py b/pyblackbird_cc/resources/admin.py index a9662ee..ac45efb 100644 --- a/pyblackbird_cc/resources/admin.py +++ b/pyblackbird_cc/resources/admin.py @@ -1,7 +1,7 @@ # Register your models here. from django.contrib import admin -from pyblackbird_cc.resources.models import Resource, ResourceSubcategory +from pyblackbird_cc.resources.models import Resource, ResourceSubcategory, PDFPageSnapshot, PDFResource from pyblackbird_cc.resources.models import ResourceCategory from pyblackbird_cc.resources.models import ResourceType @@ -24,3 +24,13 @@ class ResourceSubcategoryAdmin(admin.ModelAdmin): @admin.register(Resource) class ResourceAdmin(admin.ModelAdmin): pass + + +@admin.register(PDFResource) +class PDFResourceAdmin(admin.ModelAdmin): + list_display = ["resource", "file_name", "file_size"] + + +@admin.register(PDFPageSnapshot) +class PDFPageSnapshotAdmin(admin.ModelAdmin): + list_display = ["file_name", "pdf_file"] |