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