Add redirection after trashing a document

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-06-28 23:05:54 -04:00
parent c318d37445
commit f8f6700459
3 changed files with 26 additions and 5 deletions

View File

@@ -1,8 +1,3 @@
Importer branch
===============
* Add a reusable task to upload documents.
* Add MVP of the importer app.
3.2.4 (2019-06-XX)
==================
* Support configurable GUnicorn timeouts. Defaults to
@@ -11,6 +6,18 @@ Importer branch
* Fix IMAP4 mailbox.store flags argument. Python's documentation
incorrectly state it is named flag_list. Closes GitLab issue
#606.
* Improve the workflow preview generation. Use polylines
instead of splines. Add state actions to the preview.
Highlight the initial state.
* Add help text to the workflow transition form comment field.
* Fix direct deployment instructions.
* Add user, group, and role dashboard widgets.
* Add test mixin detect database connection leaks.
* Remove tag create event registration from the tag
instances. The tag create event is not applicable to
existing tags.
* Add proper redirection after moving a document to the
trash.
3.2.3 (2019-06-21)
==================

View File

@@ -14,6 +14,18 @@ Changes
incorrectly state it is named flag_list. Closes GitLab issue
#606. Thanks to Samuel Aebi (@samuelaebi) for the report and
debug information.
- Improve the workflow preview generation. Use polylines
instead of splines. Add state actions to the preview.
Highlight the initial state.
- Add help text to the workflow transition form comment field.
- Fix direct deployment instructions.
- Add user, group, and role dashboard widgets.
- Add test mixin detect database connection leaks.
- Remove tag create event registration from the tag
instances. The tag create event is not applicable to
existing tags.
- Add proper redirection after moving a document to the
trash.
Removals
--------

View File

@@ -10,6 +10,7 @@ from mayan.apps.acls.models import AccessControlList
from mayan.apps.common.generics import (
ConfirmView, MultipleObjectConfirmActionView
)
from mayan.apps.common.settings import setting_home_view
from ..icons import icon_document_list_deleted
from ..models import DeletedDocument, Document
@@ -33,6 +34,7 @@ class DocumentTrashView(MultipleObjectConfirmActionView):
model = Document
object_permission = permission_document_trash
pk_url_kwarg = 'pk'
post_action_redirect = reverse_lazy(viewname=setting_home_view.value)
success_message_singular = _(
'%(count)d document moved to the trash.'
)