from django.contrib import admin
from models import Author,Publisher,Book


class BookAdmin(admin.ModelAdmin):
	list_display=('title','publication_date','publisher')
	list_filter=('publication_date',)
	date_hierarchy='publication_date'
	filter_horizontal=('authors',)
	#filter_horizontal=('publisher',)
	raw_id_fields=('publisher',)
admin.site.register(Author)
admin.site.register(Publisher)
admin.site.register(Book,BookAdmin)

eb2e059181508e1b07e7df0e7cfd6d01fb429de1
<mask token>


class BookAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


<mask token>

<mask token>


class BookAdmin(admin.ModelAdmin):
    list_display = 'title', 'publication_date', 'publisher'
    list_filter = 'publication_date',
    date_hierarchy = 'publication_date'
    filter_horizontal = 'authors',
    raw_id_fields = 'publisher',


<mask token>

<mask token>


class BookAdmin(admin.ModelAdmin):
    list_display = 'title', 'publication_date', 'publisher'
    list_filter = 'publication_date',
    date_hierarchy = 'publication_date'
    filter_horizontal = 'authors',
    raw_id_fields = 'publisher',


admin.site.register(Author)
admin.site.register(Publisher)
admin.site.register(Book, BookAdmin)

from django.contrib import admin
from models import Author, Publisher, Book


class BookAdmin(admin.ModelAdmin):
    list_display = 'title', 'publication_date', 'publisher'
    list_filter = 'publication_date',
    date_hierarchy = 'publication_date'
    filter_horizontal = 'authors',
    raw_id_fields = 'publisher',


admin.site.register(Author)
admin.site.register(Publisher)
admin.site.register(Book, BookAdmin)

from django.contrib import admin
from models import Author,Publisher,Book


class BookAdmin(admin.ModelAdmin):
	list_display=('title','publication_date','publisher')
	list_filter=('publication_date',)
	date_hierarchy='publication_date'
	filter_horizontal=('authors',)
	#filter_horizontal=('publisher',)
	raw_id_fields=('publisher',)
admin.site.register(Author)
admin.site.register(Publisher)
admin.site.register(Book,BookAdmin)
