edit admin

This commit is contained in:
Francesco Esposito 2019-11-23 14:06:08 +01:00
parent 9d005daa09
commit e86c62e5bb
1 changed files with 5 additions and 1 deletions

View File

@ -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)