From 550fe0dfc90af207dd36b485f43b02282a5eb67f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Todorovich?= Date: Tue, 9 Apr 2019 15:33:11 +0000 Subject: [PATCH] [MIG] dict.iteritems() does not exist in Python3 --- base_exception/models/base_exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]