]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Check.user is not read-only
authorStephen Finucane <stephen@that.guru>
Tue, 30 Apr 2019 06:02:59 +0000 (16:02 +1000)
committerStephen Finucane <stephen@that.guru>
Tue, 30 Apr 2019 17:36:35 +0000 (11:36 -0600)
commit641b1232169023b74c3bf900c1a6f2347743ad72
treef4261d9e0a3a3dfee60640186081eadc4bbf55a3
parent0c60d688d0ac3cf41477970b9c8d299ef1d4227b
REST: Check.user is not read-only

We only support 'Check' creation - not check updating. As a result,
there's no real reason that the 'Check.user' field should be read-only
and this is causing an issue with Django REST Framework 3.7. Simply
remove the attribute and extend the tests to validate things are working
as expected.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Daniel Axtens <dja@axtens.net>
(cherry picked from commit c9cc59dac70d76971a5342ca53e2b13eb93592de)
patchwork/api/check.py
patchwork/tests/api/test_check.py