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:
@@ -2,6 +2,9 @@
|
||||
==================
|
||||
* Add support for disabling the random primary key
|
||||
test mixin.
|
||||
* Fix mailing profile log columns mappings.
|
||||
GitLab issue #626. Thanks to Jesaja Everling (@jeverling)
|
||||
for the report.
|
||||
|
||||
3.2.2 (2019-06-19)
|
||||
==================
|
||||
|
||||
@@ -9,6 +9,9 @@ Changes
|
||||
|
||||
- Add support for disabling the random primary key
|
||||
test mixin.
|
||||
- Fix mailing profile log columns mappings.
|
||||
GitLab issue #626. Thanks to Jesaja Everling (@jeverling)
|
||||
for the report.
|
||||
|
||||
|
||||
Removals
|
||||
@@ -98,6 +101,6 @@ Backward incompatible changes
|
||||
Bugs fixed or issues closed
|
||||
---------------------------
|
||||
|
||||
- :gitlab-issue:`615`
|
||||
- :gitlab-issue:`626` Mailing profile error log is empty, despite errors
|
||||
|
||||
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
||||
|
||||
@@ -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=(
|
||||
|
||||
@@ -208,7 +208,7 @@ class UserMailerLogEntryListView(SingleObjectListView):
|
||||
return {
|
||||
'hide_object': True,
|
||||
'object': self.get_user_mailer(),
|
||||
'title': _('%s error log') % self.get_user_mailer(),
|
||||
'title': _('Error log for: %s') % self.get_user_mailer(),
|
||||
}
|
||||
|
||||
def get_source_queryset(self):
|
||||
|
||||
Reference in New Issue
Block a user