Misc. API improvements for sake of mobile receiving

This commit is contained in:
Lance Edgar 2020-03-20 13:51:34 -05:00
parent ad9c193061
commit a721ec4a43
4 changed files with 74 additions and 17 deletions

View file

@ -107,6 +107,9 @@ class APIBatchView(APIBatchMixin, APIMasterView):
'created_by_uuid': batch.created_by.uuid,
'created_by_display': six.text_type(batch.created_by),
'complete': batch.complete,
'status_code': batch.status_code,
'status_display': batch.STATUS.get(batch.status_code,
six.text_type(batch.status_code)),
'executed': executed,
'executed_by_uuid': batch.executed_by_uuid,
'executed_by_display': six.text_type(batch.executed_by or ''),