update admin interface
This commit is contained in:
parent
b19f59c689
commit
19f1cc089b
4 changed files with 121 additions and 81 deletions
|
@ -106,6 +106,14 @@ class ItemSerializer(BasicItemSerializer):
|
|||
'timestamp': relation.timestamp,
|
||||
'issue_thread': BasicIssueSerializer(relation.issue_thread).data,
|
||||
})
|
||||
for placement in (obj.container_history.all()):
|
||||
timeline.append({
|
||||
'type': 'placement',
|
||||
'id': placement.id,
|
||||
'timestamp': placement.timestamp,
|
||||
'cid': placement.container.id,
|
||||
'box': placement.container.name
|
||||
})
|
||||
return sorted(timeline, key=lambda x: x['timestamp'])
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue