X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..998a1e2aeaea0c5361e526365d1e94d7eaa9d4e8:/src/pdcounter/admin.py 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)