X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/854b0db58a805fd7ec2d262abda0aef02ca6e469..de93f8f95b089c292500c0f4c2bd1adf06e305cf:/apps/catalogue/admin.py diff --git a/apps/catalogue/admin.py b/apps/catalogue/admin.py index 88f549fed..564e812cd 100644 --- a/apps/catalogue/admin.py +++ b/apps/catalogue/admin.py @@ -5,7 +5,7 @@ from django.contrib import admin from newtagging.admin import TaggableModelAdmin -from catalogue.models import Tag, Book, Fragment, BookStub, BookMedia +from catalogue.models import Tag, Book, Fragment, BookMedia class TagAdmin(admin.ModelAdmin): @@ -35,15 +35,6 @@ class FragmentAdmin(TaggableModelAdmin): ordering = ('book', 'anchor',) -class BookStubAdmin(admin.ModelAdmin): - # tag_model = Tag - - list_display = ('title', 'author', 'slug','pd') - search_fields = ('title','author') - ordering = ('title',) - - prepopulated_fields = {'slug': ('title',)} - class MediaAdmin(admin.ModelAdmin): #tag_model = BookMedia @@ -52,7 +43,6 @@ class MediaAdmin(admin.ModelAdmin): -admin.site.register(BookStub, BookStubAdmin) admin.site.register(Tag, TagAdmin) admin.site.register(Book, BookAdmin) admin.site.register(Fragment, FragmentAdmin)