]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Check.user is not read-only
authorStephen Finucane <stephen@that.guru>
Sun, 24 Jun 2018 19:55:47 +0000 (20:55 +0100)
committerDaniel Axtens <dja@axtens.net>
Sun, 26 Aug 2018 02:14:40 +0000 (12:14 +1000)
commitc9cc59dac70d76971a5342ca53e2b13eb93592de
treec6373f11cb788e49102ef04243c9b02d205fb580
parent1c692278e9c41ef7c11e83e1fe93d714b7e05bcb
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>
patchwork/api/check.py
patchwork/tests/api/test_check.py