<s> from django . contrib import admin <EOL> from django . db import models <EOL> from . models import Text <EOL> from . widgets import HTMLEditorWidget <EOL> class TextAdmin ( admin . ModelAdmin ) : <EOL> list_display = ( '<STR_LIT:name>' , '<STR_LIT>' , '<STR_LIT:type>' , ) <EOL> search_fields = ( '<STR_LIT:name>' , ) <EOL> formfield_overrides = { <EOL> models . TextField : { '<STR_LIT>' : HTMLEditorWidget } , <EOL> } <EOL> admin . site . register ( Text , TextAdmin ) </s>
