Add documentation and source
Added documentation, source and extra files.
This commit is contained in:
16
source/orm/library/admin/book.py
Normal file
16
source/orm/library/admin/book.py
Normal file
@ -0,0 +1,16 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from library.models import Book
|
||||
|
||||
|
||||
@admin.register(Book)
|
||||
class BookAdmin(admin.ModelAdmin):
|
||||
"""
|
||||
Admin for books.
|
||||
|
||||
"""
|
||||
|
||||
list_display = ["id", "name", "isbn", "genre", "year"]
|
||||
list_editable = ["year", "genre"]
|
||||
list_filter = ["genre"]
|
||||
list_per_page = 25
|
Reference in New Issue
Block a user