Sort positions by ID

This commit is contained in:
Raphael Michel
2016-12-21 19:00:23 +01:00
parent 18c24623d7
commit 0dc3f30791
2 changed files with 3 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ class OrderDetail(OrderView):
'item', 'variation'
).prefetch_related(
'item__questions', 'answers', 'answers__question'
)
).order_by('positionid')
positions = []
for p in cartpos: