From ba2db2b72999f4a0ef17da41459922a4eb20b4e9 Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski Date: Mon, 9 Oct 2017 16:18:06 +0200 Subject: [PATCH] Sort properties in item view --- storage/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/views.py b/storage/views.py index 95a1b2b..e19aa5c 100644 --- a/storage/views.py +++ b/storage/views.py @@ -64,6 +64,7 @@ def item_display(request, pk): return render(request, 'item.html', { 'item': item, 'categories': item.categories.all(), + 'props': sorted(item.props.items()), 'images': item.images.all(), 'labels': item.labels.all(), 'history': LogEntry.objects.filter(object_id=item.pk),