mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Enhancement: support custom fields in post_document endpoint (#6222)
This commit is contained in:
parent
41fc11efff
commit
129933ff30
4 changed files with 50 additions and 0 deletions
|
|
@ -930,6 +930,7 @@ class PostDocumentView(GenericAPIView):
|
|||
title = serializer.validated_data.get("title")
|
||||
created = serializer.validated_data.get("created")
|
||||
archive_serial_number = serializer.validated_data.get("archive_serial_number")
|
||||
custom_field_ids = serializer.validated_data.get("custom_fields")
|
||||
|
||||
t = int(mktime(datetime.now().timetuple()))
|
||||
|
||||
|
|
@ -957,6 +958,7 @@ class PostDocumentView(GenericAPIView):
|
|||
created=created,
|
||||
asn=archive_serial_number,
|
||||
owner_id=request.user.id,
|
||||
custom_field_ids=custom_field_ids,
|
||||
)
|
||||
|
||||
async_task = consume_file.delay(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue