1. Josh Cartmell
  2. satchmo

Commits

Brad Pitcher  committed d717169

sort sidebar orders by timestamp descending. previously no order was specified

  • Participants
  • Parent commits 0d5637b
  • Branches default

Comments (0)

Files changed (1)

File satchmo/apps/satchmo_store/shop/templatetags/satchmo_adminorder_tags.py

View file
 register.inclusion_tag('shop/admin/_ordercount_list.html')(inprocess_order_list)
 
 def orders_at_status(status):
-    return Order.objects.filter(status=status)
+    return Order.objects.filter(status=status).order_by('-time_stamp')
 
 def orderpayment_list(order):
     return {