X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0afa8ce8f8858c875404136d81dfb1645aeac19f..ae60b2a3949e96357477cc04f90fd0873cee8a92:/apps/pdcounter/admin.py?ds=sidebyside diff --git a/apps/pdcounter/admin.py b/apps/pdcounter/admin.py deleted file mode 100644 index f946cad00..000000000 --- a/apps/pdcounter/admin.py +++ /dev/null @@ -1,26 +0,0 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. -# -from django.contrib import admin - -from pdcounter.models import BookStub, Author - - -class BookStubAdmin(admin.ModelAdmin): - list_display = ('title', 'author', 'slug', 'pd') - search_fields = ('title','author') - ordering = ('title',) - - prepopulated_fields = {'slug': ('title',)} - -class AuthorAdmin(admin.ModelAdmin): - list_display = ('name', 'slug', 'death') - search_fields = ('name',) - ordering = ('sort_key', 'name') - - prepopulated_fields = {'slug': ('name',), 'sort_key': ('name',),} - - -admin.site.register(BookStub, BookStubAdmin) -admin.site.register(Author, AuthorAdmin)