Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a tag: text_color is not a missing field #196

Closed
madduck opened this issue May 21, 2024 · 0 comments · Fixed by #199
Closed

Creating a tag: text_color is not a missing field #196

madduck opened this issue May 21, 2024 · 0 comments · Fixed by #199
Assignees
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementers.

Comments

@madduck
Copy link
Contributor

madduck commented May 21, 2024

I am trying to create a tag using paperless.tags.draft. If I do not provide text_color, then I get an error:

pypaperless.exceptions.DraftFieldRequiredError: Missing fields for saving a `TagDraft`: text_color.

However, text_color isn't a writeable field in the API, but only read-only. See https://docs.paperless-ngx.com/api/#version-2

I'll have a look at the code and might be able to come up with a pull request, but I don't know how much time I can devote to this. It's probably not as easy as just removing text_color from TagDraft, as you'd also want to make the field read-only in the Tag model, and update tests.

@tb1337 tb1337 self-assigned this May 22, 2024
@tb1337 tb1337 added the bugfix Inconsistencies or issues which will cause a problem for users or implementers. label May 22, 2024
@tb1337 tb1337 linked a pull request May 22, 2024 that will close this issue
@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix Inconsistencies or issues which will cause a problem for users or implementers.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants