diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-15 21:01:31 +0100 |
commit | eeaddb27560d723ca7d61359744ceb2709fccd2d (patch) | |
tree | 04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /pyblackbird_cc/resources/admin.py | |
parent | 7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff) |
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'pyblackbird_cc/resources/admin.py')
-rw-r--r-- | pyblackbird_cc/resources/admin.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/pyblackbird_cc/resources/admin.py b/pyblackbird_cc/resources/admin.py deleted file mode 100644 index 0aa0c68..0000000 --- a/pyblackbird_cc/resources/admin.py +++ /dev/null @@ -1,39 +0,0 @@ -# Register your models here. -from django.contrib import admin - -from pyblackbird_cc.resources.models import PDFPageSnapshot -from pyblackbird_cc.resources.models import PDFResource -from pyblackbird_cc.resources.models import Resource -from pyblackbird_cc.resources.models import ResourceCategory -from pyblackbird_cc.resources.models import ResourceSubcategory -from pyblackbird_cc.resources.models import ResourceType - - -@admin.register(ResourceType) -class ResourceTypeAdmin(admin.ModelAdmin): - pass - - -@admin.register(ResourceCategory) -class ResourceCategoryAdmin(admin.ModelAdmin): - pass - - -@admin.register(ResourceSubcategory) -class ResourceSubcategoryAdmin(admin.ModelAdmin): - ordering = ["name"] - - -@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"] |