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,7 +2,10 @@
|
|||||||
==================
|
==================
|
||||||
* Add support for disabling the random primary key
|
* Add support for disabling the random primary key
|
||||||
test mixin.
|
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)
|
3.2.2 (2019-06-19)
|
||||||
==================
|
==================
|
||||||
* Fix document type change view. Closes GitLab issue #614
|
* Fix document type change view. Closes GitLab issue #614
|
||||||
|
|||||||
@@ -9,7 +9,10 @@ Changes
|
|||||||
|
|
||||||
- Add support for disabling the random primary key
|
- Add support for disabling the random primary key
|
||||||
test mixin.
|
test mixin.
|
||||||
|
- Fix mailing profile log columns mappings.
|
||||||
|
GitLab issue #626. Thanks to Jesaja Everling (@jeverling)
|
||||||
|
for the report.
|
||||||
|
|
||||||
|
|
||||||
Removals
|
Removals
|
||||||
--------
|
--------
|
||||||
@@ -98,6 +101,6 @@ Backward incompatible changes
|
|||||||
Bugs fixed or issues closed
|
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/
|
.. _PyPI: https://pypi.python.org/pypi/mayan-edms/
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ class MailerApp(MayanAppConfig):
|
|||||||
|
|
||||||
LogEntry = self.get_model(model_name='LogEntry')
|
LogEntry = self.get_model(model_name='LogEntry')
|
||||||
UserMailer = self.get_model(model_name='UserMailer')
|
UserMailer = self.get_model(model_name='UserMailer')
|
||||||
|
UserMailerLogEntry = self.get_model(model_name='UserMailerLogEntry')
|
||||||
|
|
||||||
MailerBackend.initialize()
|
MailerBackend.initialize()
|
||||||
|
|
||||||
@@ -79,6 +80,13 @@ class MailerApp(MayanAppConfig):
|
|||||||
SourceColumn(
|
SourceColumn(
|
||||||
source=UserMailer, attribute='backend_label'
|
source=UserMailer, attribute='backend_label'
|
||||||
)
|
)
|
||||||
|
SourceColumn(
|
||||||
|
attribute='datetime', label=_('Date and time'),
|
||||||
|
source=UserMailerLogEntry
|
||||||
|
)
|
||||||
|
SourceColumn(
|
||||||
|
attribute='message', label=_('Message'), source=UserMailerLogEntry
|
||||||
|
)
|
||||||
|
|
||||||
ModelPermission.register(
|
ModelPermission.register(
|
||||||
model=Document, permissions=(
|
model=Document, permissions=(
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ class UserMailerLogEntryListView(SingleObjectListView):
|
|||||||
return {
|
return {
|
||||||
'hide_object': True,
|
'hide_object': True,
|
||||||
'object': self.get_user_mailer(),
|
'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):
|
def get_source_queryset(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user