<s> from django . contrib import admin <EOL> from cheeserater . packages . models import Topic , Category , Package <EOL> class CategoryAdmin ( admin . ModelAdmin ) : <EOL> prepopulated_fields = { '<STR_LIT>' : [ "<STR_LIT:value>" ] } <EOL> class TopicAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , ) <EOL> prepopulated_fields = { '<STR_LIT>' : [ '<STR_LIT:name>' ] } <EOL> class PackageAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , '<STR_LIT:version>' , '<STR_LIT>' ) <EOL> search_fields = ( '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . register ( Category , CategoryAdmin ) <EOL> admin . site . register ( Topic , TopicAdmin ) <EOL> admin . site . register ( Package , PackageAdmin ) </s>
