예제 #1
0
 class Meta:
     model = ContextFilter
     fields = ['context', 'search_field', 'operator', 'value_field']  # reorder
     widgets = {
         'search_field': ChoiceWidget('FilterSearchFieldsByRelatedDistillery'),
         'operator': ChoiceWidget('FilterOperatorsBySearchField'),
         'value_field': ChoiceWidget('FilterValueFieldsByFocalDistillery'),
     }
예제 #2
0
 class Meta(FittingForm.Meta):
     model = MailFitting
     autocomplete_names = {
         'target_field': 'FilterTargetFieldsByMailCondenser'
     }
     widgets = {
         'target_field': ChoiceWidget('FilterTargetFieldsByMailCondenser'),
     }
예제 #3
0
 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'),
     }
예제 #4
0
 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',
     ]
예제 #5
0
 class Meta(FittingInlineForm.Meta):
     model = MailFitting
     widgets = {
         'target_field': ChoiceWidget('FilterTargetFieldsByBottle'),
     }