1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Add flake8 style check

This commit is contained in:
Lars Kruse 2017-05-09 23:59:42 +02:00
parent ce6ce6b5dd
commit 234ed00909
10 changed files with 28 additions and 15 deletions

View file

@ -23,6 +23,8 @@ def get_new_mail(mailbox_admin, request, queryset):
for mailbox in queryset.all():
logger.debug('Receiving mail for %s' % mailbox)
mailbox.get_new_mail()
get_new_mail.short_description = 'Get new mail'
@ -103,6 +105,7 @@ class MessageAdmin(admin.ModelAdmin):
)
actions = [resend_message_received_signal]
if getattr(settings, 'DJANGO_MAILBOX_ADMIN_ENABLED', True):
admin.site.register(Message, MessageAdmin)
admin.site.register(MessageAttachment, MessageAttachmentAdmin)