mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
replaced usages of .id with .pk, fixed filename issue in exporter
This commit is contained in:
parent
dc59e0f257
commit
68df1cf4ee
5 changed files with 15 additions and 13 deletions
|
|
@ -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__(),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue