Last active
August 1, 2017 06:41
-
-
Save thelazyliz/0d5fe90fb510b68514103ca94e69a4eb to your computer and use it in GitHub Desktop.
change what is being displayed using list_display in django admin change list page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from . models import Book | |
class BookAdmin(admin.ModelAdmin): | |
list_display = ('book_title', 'author', 'ISBN_code') | |
admin.site.register(Book, BookAdmin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment