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')),