]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Return string from 'combined_check_status'
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 24 Jun 2016 16:28:13 +0000 (17:28 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 28 Jun 2016 09:16:10 +0000 (10:16 +0100)
commitada0e90906835c5bb88b4bad99ed555df013de46
tree6b0daccc33e1c2cee90fa3a250c74c1d4eaf3450
parentc5b9ca05fe905666d7f1ab90d655b5881b7c22e4
models: Return string from 'combined_check_status'

Previously the 'combined_check_status' function returned the checks
enum integer for the status field. However, the string representation
is more meaningful and is the only representation seen by users at
moment. Change this function so it returns, for example, 'success'
instead of '1'.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/models.py
patchwork/rest_serializers.py
patchwork/tests/test_checks.py
patchwork/views/xmlrpc.py