Add admin entires for the IMAP and POP3 sources.
This commit is contained in:
@@ -3,10 +3,20 @@ from __future__ import unicode_literals
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import (
|
||||
StagingFolderSource, WatchFolderSource, WebFormSource
|
||||
IMAPEmail, POP3Email, StagingFolderSource, WatchFolderSource, WebFormSource
|
||||
)
|
||||
|
||||
|
||||
@admin.register(IMAPEmail)
|
||||
class IMAPEmailAdmin(admin.ModelAdmin):
|
||||
list_display = ('label', 'enabled', 'uncompress', 'host', 'ssl', 'port', 'interval', 'document_type', 'metadata_attachment_name')
|
||||
|
||||
|
||||
@admin.register(POP3Email)
|
||||
class POP3EmailAdmin(admin.ModelAdmin):
|
||||
list_display = ('label', 'enabled', 'uncompress', 'host', 'ssl', 'port', 'interval', 'document_type', 'metadata_attachment_name')
|
||||
|
||||
|
||||
@admin.register(StagingFolderSource)
|
||||
class StagingFolderSourceAdmin(admin.ModelAdmin):
|
||||
list_display = ('label', 'enabled', 'folder_path', 'preview_width', 'preview_height', 'uncompress', 'delete_after_upload')
|
||||
|
||||
Reference in New Issue
Block a user