- return get_attributes(qcg_allocation, ('host_name', 'status_description', 'processes_count', 'slots_count',
- 'processes_group_id', 'submission_time', 'estimated_start_time',
- 'finish_time', 'local_submission_time', 'local_start_time',
- 'local_finish_time', 'purged', 'efficiency', 'comment', 'memory_usage'))
+ attrs = get_attributes(qcg_allocation, ('host_name', 'status_description', 'processes_count', 'slots_count',
+ 'processes_group_id', 'submission_time', 'estimated_start_time',
+ 'finish_time', 'local_submission_time', 'local_start_time',
+ 'local_finish_time', 'purged', 'efficiency', 'comment', 'memory_usage',
+ 'working_directory'))
+
+ attrs['status'] = Allocation.STATUS_CHOICES_REVERSED[qcg_allocation.status]
+
+ return attrs