<s> from django_select2 . forms import ModelSelect2Widget <EOL> from leonardo . module . web . models . page import Page , PageColorScheme , PageTheme <EOL> from leonardo . forms . fields . dynamic import DynamicSelectWidget <EOL> class PageSelectWidget ( DynamicSelectWidget ) : <EOL> model = Page <EOL> search_fields = [ '<STR_LIT>' , ] <EOL> def label_from_instance ( self , obj ) : <EOL> """<STR_LIT>""" <EOL> return obj . tree_label <EOL> class PageColorSchemeSelectWidget ( ModelSelect2Widget ) : <EOL> model = PageColorScheme <EOL> search_fields = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> class PageThemeSelectWidget ( ModelSelect2Widget ) : <EOL> model = PageTheme <EOL> search_fields = [ '<STR_LIT>' , '<STR_LIT>' ] </s>
