示例#1
0
 def build_query(self):
     if self.cleaned_data:
         filter_kwargs = PublicSearchForm.build_query(self)
         if filter_kwargs is None:
             filter_kwargs = {}
         if 'requestion_number' in self.changed_data:
             filter_kwargs[self.field_map['requestion_number']] = self.cleaned_data['requestion_number']
         return filter_kwargs
示例#2
0
 def build_query(self):
     if self.cleaned_data:
         filter_kwargs = PublicSearchForm.build_query(self)
         if filter_kwargs is None:
             filter_kwargs = {}
         for param in ['requestion_number', 'child_last_name',
                       'child_middle_name', 'requester_first_name',
                       'requester_last_name', 'requester_middle_name',
                       'requester_document_series',
                       'requester_document_number']:
             if param in self.changed_data:
                 filter_kwargs[self.field_map[param]] = (
                     self.cleaned_data[param])
         return filter_kwargs