forked from wiktor/spejstore-new
Sort properties in item view
This commit is contained in:
parent
6204259990
commit
ba2db2b729
|
@ -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),
|
||||||
|
|
Loading…
Reference in New Issue