replaced usages of .id with .pk, fixed filename issue in exporter

This commit is contained in:
Jonas Winkler
2020-11-03 12:37:37 +01:00
parent 64ee9a4941
commit 9a4ff3f807
5 changed files with 15 additions and 13 deletions

View File

@@ -134,7 +134,7 @@ def run_post_consume_script(sender, document, **kwargs):
Popen((
settings.POST_CONSUME_SCRIPT,
str(document.id),
str(document.pk),
document.file_name,
document.source_path,
document.thumbnail_path,
@@ -166,7 +166,7 @@ def set_log_entry(sender, document=None, logging_group=None, **kwargs):
action_flag=ADDITION,
action_time=timezone.now(),
content_type=ct,
object_id=document.id,
object_id=document.pk,
user=user,
object_repr=document.__str__(),
)