]> 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:31:13 +0000 (18:31 +0000)
commita8492f0e2ba3ca783c1b7748ad3d9b204372acf4
tree0a30551176124a8a83b21a396e8fb7cd2ab5c988
parent6d37dcf1f0c53fec8e3b943dc3dcf368099cb4fa
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.

Conflicts:
patchwork/api/patch.py

NOTE(stephenfin): Conflicts are due to the absence of commit d3d4f9f36
("Add Django 3.0 support") which we do not want to backport here.

[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>
(cherry picked from commit fe07f30df6fe263938b1f898ffffc354c4ff470c)
patchwork/api/__init__.py
patchwork/api/embedded.py
patchwork/api/event.py
patchwork/api/patch.py