Show More
@@ -106,11 +106,14 b' def user_log_filter(user_log, search_ter' | |||
|
106 | 106 | elif isinstance(term, query.DateRange): |
|
107 | 107 | field = term.fieldname |
|
108 | 108 | val = [term.startdate, term.enddate] |
|
109 | elif isinstance(term, query.NullQuery.__class__): | |
|
110 | field = '' | |
|
111 | val = '' | |
|
109 | 112 | else: |
|
110 | 113 | field = term.fieldname |
|
111 | 114 | val = term.text |
|
112 | ||
|
113 | user_log = user_log.filter(get_filterion(field, val, term)) | |
|
115 | if field: | |
|
116 | user_log = user_log.filter(get_filterion(field, val, term)) | |
|
114 | 117 | elif isinstance(qry, query.Or): |
|
115 | 118 | filters = [] |
|
116 | 119 | for term in qry: |
General Comments 0
You need to be logged in to leave comments.
Login now