X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..481c75133987a510db34b0950b6861962aa2aaab:/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)