This repository has been archived by the owner on May 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Getting KeyError on partial update (PATCH) when 'tags' not included #7
Comments
Yeah you're absolutely right! It's strange I've never added |
Great. I opened a PR. It needs tests though. Wasn't sure how you wanted those handled. |
joeweiss
added a commit
to joeweiss/django-taggit-serializer
that referenced
this issue
Jul 19, 2015
Hey folks. This issue is occurring again. It looks like the fix for this issue was overwritten after the PR was accepted. Here's where it happened: I'm opening another PR now. Thanks! |
This was referenced Jul 19, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Partials update (via PATCH request) is throwing a KeyError in _pop_tags when the 'tags' field's data is not included in the patch request.
In our situation, we patch a lot of records, and we only patch the fields that change.
Current implementation
We need the check the existence of the key before pop'ing it, correct?
I'm happy to open a PR, but wanted to make sure I wasn't missing something simple or overthinking it.
The text was updated successfully, but these errors were encountered: