Skip to content

Commit

Permalink
Merge pull request #77 from medmunds/pr_flake
Browse files Browse the repository at this point in the history
Fix flake8 warnings; freeze flake version for tox.
  • Loading branch information
spookylukey authored Dec 8, 2016
2 parents 94937a0 + 4eb2661 commit f6bc3fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion mailer/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

def show_to(message):
return ", ".join(message.to_addresses)
show_to.short_description = "To"
show_to.short_description = "To" # noqa: E305


class MessageAdminMixin(object):
Expand Down Expand Up @@ -40,6 +40,7 @@ class MessageLogAdmin(MessageAdminMixin, admin.ModelAdmin):
readonly_fields = ['plain_text_body', 'message_id']
search_fields = ['message_id']


admin.site.register(Message, MessageAdmin)
admin.site.register(DontSendEntry, DontSendEntryAdmin)
admin.site.register(MessageLog, MessageLogAdmin)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ deps =
django19: Django==1.9.10
django110: Django==1.10.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
flake: flake8
flake: flake8==3.2.1

[testenv:checkmanifest]
basepython = python2.7
Expand Down

0 comments on commit f6bc3fd

Please sign in to comment.