Beispiel #1
0
 def __searchF__(self, info):
     tf = {}
     tf['pos__name'] = (_('Point of Sales'),
                        lambda x: Q(pos__name__icontains=x), 'input')
     tf['date'] = (_('Date'),
                   lambda x: Q(**daterange_filter(x, 'opened_date')),
                   'daterange')
     return tf
Beispiel #2
0
 def __searchF__(self, info):
     tf = {}
     tf['action_time'] = (_('Date'), lambda x: Q(**daterange_filter(x, 'action_time')), 'daterange')
     tf['get_action_flag_display'] = (_('Action'), lambda x: Q(action_flag=x), list(TYPE_ACTION))
     tf['object_id'] = (_('ID'), lambda x: Q(object_id=x), 'input')
     tf['user__username'] = (_('User'), lambda x: Q(user__username__icontains=x), 'input')
     tf['content_type__app_label'] = (_('APP Label'), lambda x: Q(content_type__app_label__icontains=x), 'input')
     # tf['users']=(_('User'),lambda x: Q(user__username=x),[('M','M*'),('S','S*')])
     return tf