MCPcopy Create free account
hub / github.com/codemistic/Web-Development / AuthorAdmin

Class AuthorAdmin

locallibrary/catalog/admin.py:13–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12@admin.register(Author)
13class AuthorAdmin(admin.ModelAdmin):
14 list_display = ('last_name', 'first_name', 'date_of_birth', 'date_of_death')
15 fields = ['first_name', 'last_name', ('date_of_birth', 'date_of_death')]
16
17
18class BooksInstanceInline(admin.TabularInline):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected