edit admin
This commit is contained in:
parent
9d005daa09
commit
e86c62e5bb
|
@ -2,4 +2,8 @@ from django.contrib import admin
|
|||
from .models import Book
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Book)
|
||||
class BookAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'title', 'author', 'owner')
|
||||
|
||||
|
||||
admin.site.register(Book, BookAdmin)
|
Loading…
Reference in New Issue