mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-26 06:57:37 +00:00
replaced usages of .id with .pk, fixed filename issue in exporter
This commit is contained in:
1 parent
dc59e0f257
commit
68df1cf4ee
5 files changed
+15
-13
No files matched your search
@@ -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