diff --git a/base_exception/models/base_exception.py b/base_exception/models/base_exception.py index 8c1b706fa..7f6ea10b1 100644 --- a/base_exception/models/base_exception.py +++ b/base_exception/models/base_exception.py @@ -227,10 +227,10 @@ class BaseException(models.AbstractModel): model_exceptions, sub_exceptions, optimize) all_exception_ids = [] - for obj, exception_ids in exception_by_rec.iteritems(): + for obj, exception_ids in exception_by_rec.items(): obj.exception_ids = [(6, 0, exception_ids)] all_exception_ids += exception_ids - for rule, exception_ids in exception_by_rule.iteritems(): + for rule, exception_ids in exception_by_rule.items(): rule[reverse_field] = [(6, 0, exception_ids.ids)] if exception_ids: all_exception_ids += [rule.id]