Skip to content

Commit

Permalink
Merge pull request #54 from katomaso/hotfix/python3
Browse files Browse the repository at this point in the history
Fix non-existing python3 method .iteritems
  • Loading branch information
gotlium committed Apr 17, 2016
2 parents 2a3d42c + 521b848 commit 5777d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbmail/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
Expand Down

0 comments on commit 5777d40

Please sign in to comment.