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