mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
Modernize syntax, drop Python<3, drop Django<1.11
This commit is contained in:
parent
d114008645
commit
84c99afa03
42 changed files with 176 additions and 330 deletions
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
Model configuration in application ``django_mailbox`` for administration
|
||||
|
|
@ -74,7 +73,7 @@ class MessageAdmin(admin.ModelAdmin):
|
|||
def envelope_headers(self, msg):
|
||||
email = msg.get_email_object()
|
||||
return '\n'.join(
|
||||
[('%s: %s' % (h, v)) for h, v in email.items()]
|
||||
[('{}: {}'.format(h, v)) for h, v in email.items()]
|
||||
)
|
||||
|
||||
inlines = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue