Sort properties in item view

This commit is contained in:
Mateusz Piotrowski 2017-10-09 16:18:06 +02:00 committed by Piotr Dobrowolski
parent 6204259990
commit ba2db2b729
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def item_display(request, pk):
return render(request, 'item.html', { return render(request, 'item.html', {
'item': item, 'item': item,
'categories': item.categories.all(), 'categories': item.categories.all(),
'props': sorted(item.props.items()),
'images': item.images.all(), 'images': item.images.all(),
'labels': item.labels.all(), 'labels': item.labels.all(),
'history': LogEntry.objects.filter(object_id=item.pk), 'history': LogEntry.objects.filter(object_id=item.pk),