diff options
author | Stephen Finucane <stephen@that.guru> | 2018-10-11 11:47:56 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2018-10-14 15:03:34 +0100 |
commit | 1a0021a21a8bfe822b469da7fb3e5f0ab6dcaed1 (patch) | |
tree | b4ed17762aad7b2ccf838789ab2d087a2924f469 /releasenotes | |
parent | b690746d3f21fac69dc6f2aadd81bdd38ace225a (diff) | |
download | patchwork-1a0021a21a8bfe822b469da7fb3e5f0ab6dcaed1.tar patchwork-1a0021a21a8bfe822b469da7fb3e5f0ab6dcaed1.tar.gz |
REST: Allow setting of values using embedded serializers
Unfortunately, the use of embedded serializers for some fields breaks
the ability to update these fields, either via the HTML interface (where
the widget is totally busted) or via a client like 'git-pw'. What we
actually want is to be able to update these fields like normal primary
key but show them using the embedded serializer. We do just this by
using a modified variant of the PrimaryKeyRelatedField and using the
serializers simply for displaying.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #216
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/issue-216-d3bf9d1baa100f74.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/issue-216-d3bf9d1baa100f74.yaml b/releasenotes/notes/issue-216-d3bf9d1baa100f74.yaml new file mode 100644 index 0000000..c3756aa --- /dev/null +++ b/releasenotes/notes/issue-216-d3bf9d1baa100f74.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + An issue that prevented updating of delegates using the REST API is + resolved. (`#216 <https://github.com/getpatchwork/patchwork/issues/216>`__) |