Consolidate intial document created event and the first
document properties edited events. Preserve the user that initially creates the document. GitLab issue #433. Thanks to Jesaja Everling (@jeverling) for the report. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
- Fix new mailer creation view. GitLab issue #431.
|
||||
Thanks to Robert Schöftner (@robert.schoeftner) for the
|
||||
report and the solution.
|
||||
- Consolidate intial document created event and the first
|
||||
document properties edited events. Preserve the user that
|
||||
initially creates the document. GitLab issue #433. Thanks
|
||||
to Jesaja Everling (@jeverling) for the report.
|
||||
|
||||
|
||||
2.7.1 (2017-09-03)
|
||||
==================
|
||||
|
||||
@@ -10,6 +10,10 @@ What's new
|
||||
- Fix new mailer creation view. GitLab issue #431.
|
||||
Thanks to Robert Schöftner (@robert.schoeftner) for the
|
||||
report and the solution.
|
||||
- Consolidate intial document created event and the first
|
||||
document properties edited events. Preserve the user that
|
||||
initially creates the document. GitLab issue #433. Thanks
|
||||
to Jesaja Everling (@jeverling) for the report.
|
||||
|
||||
Removals
|
||||
--------
|
||||
|
||||
@@ -80,7 +80,7 @@ class Source(models.Model):
|
||||
"""
|
||||
try:
|
||||
with transaction.atomic():
|
||||
document = Document.objects.create(
|
||||
document = Document(
|
||||
description=description or '', document_type=document_type,
|
||||
label=label or file_object.name,
|
||||
language=language or setting_language.value
|
||||
@@ -96,7 +96,7 @@ class Source(models.Model):
|
||||
else:
|
||||
try:
|
||||
document_version = document.new_version(
|
||||
file_object=file_object, _user=user
|
||||
file_object=file_object, _user=user,
|
||||
)
|
||||
|
||||
if user:
|
||||
|
||||
Reference in New Issue
Block a user