<s> from django . contrib import admin <EOL> from . models import Tidbit , TagSuggestion , TagSynonym , TagKeyphrase <EOL> from auxiliary . tag_suggestions import approve as tag_suggestions_approve <EOL> class TidibitAdmin ( admin . ModelAdmin ) : <EOL> model = Tidbit <EOL> list_display = ( '<STR_LIT:title>' , '<STR_LIT:content>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> list_display_links = ( '<STR_LIT:title>' , '<STR_LIT:content>' ) <EOL> list_editable = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> class TagSuggestionAdmin ( admin . ModelAdmin ) : <EOL> model = TagSuggestion <EOL> list_display = ( '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT:object>' ) <EOL> actions = [ tag_suggestions_approve ] <EOL> admin . site . register ( Tidbit , TidibitAdmin ) <EOL> admin . site . register ( TagSuggestion , TagSuggestionAdmin ) <EOL> class TagSynonymAdmin ( admin . ModelAdmin ) : <EOL> model = TagSynonym <EOL> list_display = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> raw_id_fields = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> ordering = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> admin . site . register ( TagSynonym , TagSynonymAdmin ) <EOL> class TagKeyphraseAdmin ( admin . ModelAdmin ) : <EOL> model = TagKeyphrase <EOL> admin . site . register ( TagKeyphrase , TagKeyphraseAdmin ) </s>
