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:
@@ -80,7 +80,7 @@ class Source(models.Model):
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
document = Document.objects.create(
|
document = Document(
|
||||||
description=description or '', document_type=document_type,
|
description=description or '', document_type=document_type,
|
||||||
label=label or file_object.name,
|
label=label or file_object.name,
|
||||||
language=language or setting_language.value
|
language=language or setting_language.value
|
||||||
|
|||||||
Reference in New Issue
Block a user