From 27e2a5951b3325556ceb84155fb841102a9636a7 Mon Sep 17 00:00:00 2001 From: Denis Mudarisov Date: Wed, 19 Feb 2020 13:38:11 +0500 Subject: [PATCH] :rainbow: pre-commit: redefined-builtin --- mail_base/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail_base/models.py b/mail_base/models.py index a6c5eec..89d23b9 100644 --- a/mail_base/models.py +++ b/mail_base/models.py @@ -10,8 +10,8 @@ class MailMessage(models.Model): values["partner_ids"] = [] for triplet in values.get("needaction_partner_ids"): if triplet[0] == 6: - for id in triplet[2]: - values["partner_ids"].append((4, id, False)) + for i in triplet[2]: + values["partner_ids"].append((4, i, False)) return super(MailMessage, self).write(values)