mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
replaced usages of .id with .pk, fixed filename issue in exporter
This commit is contained in:
@@ -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__(),
|
||||
)
|
||||
|
Reference in New Issue
Block a user