Allow dict for custom fields on document draft#570
Allow dict for custom fields on document draft#570cehser wants to merge 2 commits intotb1337:mainfrom
Conversation
|
I had to change the serialization for dicts in order for this to work. However, this affected a test which I had to cut some lines off. Please review carefully. |
|
Thanks. Gonna review it soon. |
|
I'm currently not sure how to handle that request with pypaperless current data model. Must think about it carefully. |
|
Please check my changes in the breaking/rewrite-to-httpx-pydantic branch. I wanted to rewrite pypaperless to pydantic for years and so did I. Its still in dev but you could test if the behavior of uploading docs with custom field values is better now. Be aware of the API changes of pypaperless, model classes no longer have business logic (save, update ...). You must use |
No description provided.