Fix mailing profile log columns mappings
GitLab issue #626. Thanks to Jesaja Everling (@jeverling) for the report. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -51,6 +51,7 @@ class MailerApp(MayanAppConfig):
|
||||
|
||||
LogEntry = self.get_model(model_name='LogEntry')
|
||||
UserMailer = self.get_model(model_name='UserMailer')
|
||||
UserMailerLogEntry = self.get_model(model_name='UserMailerLogEntry')
|
||||
|
||||
MailerBackend.initialize()
|
||||
|
||||
@@ -79,6 +80,13 @@ class MailerApp(MayanAppConfig):
|
||||
SourceColumn(
|
||||
source=UserMailer, attribute='backend_label'
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='datetime', label=_('Date and time'),
|
||||
source=UserMailerLogEntry
|
||||
)
|
||||
SourceColumn(
|
||||
attribute='message', label=_('Message'), source=UserMailerLogEntry
|
||||
)
|
||||
|
||||
ModelPermission.register(
|
||||
model=Document, permissions=(
|
||||
|
||||
Reference in New Issue
Block a user