From 521b8482b24cc54d25be66038f8d6c3d1825ebd4 Mon Sep 17 00:00:00 2001 From: Tomas Peterka Date: Sun, 17 Apr 2016 15:13:20 +0200 Subject: [PATCH] Fix nonexisting python3 method --- dbmail/defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbmail/defaults.py b/dbmail/defaults.py index f58c1b8..b462826 100644 --- a/dbmail/defaults.py +++ b/dbmail/defaults.py @@ -85,7 +85,7 @@ def get_settings(key, default): 'sms': 'dbmail.backends.sms', 'push': 'dbmail.backends.push', }) -_BACKEND = {v: k for k, v in BACKEND.iteritems()} +_BACKEND = {v: k for k, v in BACKEND.items()} BACKENDS_MODEL_CHOICES = get_settings('DB_MAILER_BACKENDS_MODEL_CHOICES', ( (BACKEND.get('mail'), _('MailBox')), (BACKEND.get('push'), _('Push')),