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:
Roberto Rosario
2017-09-05 03:18:35 -04:00
parent a3e28d81e5
commit 233aca8421
3 changed files with 11 additions and 2 deletions

View File

@@ -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)
==================

View File

@@ -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
--------

View File

@@ -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: