Improve document creation via sources app to trigger

correct event.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-02 04:16:13 -04:00
parent cb15e40f70
commit ae57b97a1b

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