X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..5d48d148b34690b425b1f7ff5a6d38c157fd4362:/src/pdcounter/admin.py?ds=sidebyside diff --git a/src/pdcounter/admin.py b/src/pdcounter/admin.py index e2e3fc310..b83756baa 100644 --- a/src/pdcounter/admin.py +++ b/src/pdcounter/admin.py @@ -14,12 +14,13 @@ class BookStubAdmin(admin.ModelAdmin): 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',),} + prepopulated_fields = {'slug': ('name',), 'sort_key': ('name',)} admin.site.register(BookStub, BookStubAdmin)