]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Remove 'PatchRelationSerializer'
authorStephen Finucane <stephen@that.guru>
Thu, 1 Oct 2020 13:38:31 +0000 (14:38 +0100)
committerStephen Finucane <stephen@that.guru>
Sun, 13 Dec 2020 18:22:12 +0000 (18:22 +0000)
commitfe07f30df6fe263938b1f898ffffc354c4ff470c
treed28268964255a3957db464a366ddc923b61acf5e
parent8092f8f4f59ea5581180a13994eb090d24394206
Remove 'PatchRelationSerializer'

This wasn't writeable for reasons I haven't been able to figure out.
However, it's not actually needed: the 'PatchSerializer' can do the job
just fine, given enough information. This exposes a bug in DRF, which
has been reported upstream [1]. While we wait for that fix, or some
variant of it, to be merged, we must monkey patch the library.

[1] https://github.com/encode/django-rest-framework/issues/7550
[2] https://github.com/encode/django-rest-framework/pull/7574

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reported-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
Closes: #379
Cc: Daniel Axtens <dja@axtens.net>
Cc: Rohit Sarkar <rohitsarkar5398@gmail.com>
patchwork/api/__init__.py
patchwork/api/embedded.py
patchwork/api/event.py
patchwork/api/patch.py