<s> from django . contrib import admin <EOL> from basic . books . models import * <EOL> class GenreAdmin ( admin . ModelAdmin ) : <EOL> prepopulated_fields = { '<STR_LIT>' : ( '<STR_LIT:title>' , ) } <EOL> admin . site . register ( Genre , GenreAdmin ) <EOL> class PublisherAdmin ( admin . ModelAdmin ) : <EOL> prepopulated_fields = { '<STR_LIT>' : ( '<STR_LIT:title>' , ) } <EOL> admin . site . register ( Publisher , PublisherAdmin ) <EOL> class BookAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:title>' , '<STR_LIT>' ) <EOL> prepopulated_fields = { '<STR_LIT>' : ( '<STR_LIT:title>' , ) } <EOL> admin . site . register ( Book , BookAdmin ) <EOL> class HighlightAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_filter = ( '<STR_LIT>' , ) <EOL> admin . site . register ( Highlight , HighlightAdmin ) <EOL> class PageAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . register ( Page , PageAdmin ) </s>
