diff --git a/mis_builder/models/mis_report.py b/mis_builder/models/mis_report.py index a34c3b3..29d4b5c 100644 --- a/mis_builder/models/mis_report.py +++ b/mis_builder/models/mis_report.py @@ -611,7 +611,7 @@ class MisReport(models.Model): domain = query.domain and safe_eval(query.domain, eval_context) or [] if get_additional_query_filter: domain.extend(get_additional_query_filter(query)) - if query.date_field.ttype: + if query.date_field: if query.date_field.ttype == "date": domain.extend( [