class Meta: model = ContextFilter fields = ['context', 'search_field', 'operator', 'value_field'] # reorder widgets = { 'search_field': ChoiceWidget('FilterSearchFieldsByRelatedDistillery'), 'operator': ChoiceWidget('FilterOperatorsBySearchField'), 'value_field': ChoiceWidget('FilterValueFieldsByFocalDistillery'), }
class Meta(FittingForm.Meta): model = MailFitting autocomplete_names = { 'target_field': 'FilterTargetFieldsByMailCondenser' } widgets = { 'target_field': ChoiceWidget('FilterTargetFieldsByMailCondenser'), }
class Meta: model = Taste exclude = [] widgets = { 'author': ChoiceWidget('FilterCharFieldsByBottleAndLabel'), 'title': ChoiceWidget('FilterCharFieldsByBottleAndLabel'), 'content': ChoiceWidget('FilterCharFieldsByBottleAndLabel'), 'location': ChoiceWidget('FilterLocationFieldsByBottleAndLabel'), 'datetime': ChoiceWidget('FilterDateTimeFieldsByBottleAndLabel'), 'date_string': ChoiceWidget('FilterCharFieldsByBottleAndLabel'), }
class Meta: model = Taste exclude = [] widgets = { 'author': ChoiceWidget('FilterCharFieldsByContainer'), 'title': ChoiceWidget('FilterCharFieldsByContainer'), 'content': ChoiceWidget('FilterCharFieldsByContainer'), 'location': ChoiceWidget('FilterLocationFieldsByContainer'), 'datetime': ChoiceWidget('FilterDateTimeFieldsByContainer'), 'date_string': ChoiceWidget('FilterCharFieldsByContainer'), } fields = [ 'container', 'author', 'title', 'content', 'location', 'location_format', 'datetime', 'date_string', 'date_format', ]
class Meta(FittingInlineForm.Meta): model = MailFitting widgets = { 'target_field': ChoiceWidget('FilterTargetFieldsByBottle'), }