<s> '''<STR_LIT>''' <EOL> from django import forms <EOL> from expedient . clearinghouse . aggregate . utils import get_aggregate_types <EOL> class ContentTypeChoiceField ( forms . ModelChoiceField ) : <EOL> """<STR_LIT>""" <EOL> def label_from_instance ( self , obj ) : <EOL> return "<STR_LIT:%s>" % obj <EOL> class AggregateTypeForm ( forms . Form ) : <EOL> type = ContentTypeChoiceField ( <EOL> label = "<STR_LIT>" , <EOL> queryset = get_aggregate_types ( ) , <EOL> widget = forms . Select ( attrs = { '<STR_LIT>' : "<STR_LIT>" } ) ) </s>
