Commits

Josh VanderLinden committed e9dbf6e

Making the admin load faster

  • Participants
  • Parent commits 0b57157

Comments (0)

Files changed (1)

  
      objects = OrderManager()
  
+diff --git a/satchmo/apps/satchmo_store/shop/templatetags/satchmo_adminorder_tags.py b/satchmo/apps/satchmo_store/shop/templatetags/satchmo_adminorder_tags.py
+--- a/satchmo/apps/satchmo_store/shop/templatetags/satchmo_adminorder_tags.py
++++ b/satchmo/apps/satchmo_store/shop/templatetags/satchmo_adminorder_tags.py
+@@ -31,7 +31,7 @@
+ register.inclusion_tag('shop/admin/_ordercount_list.html')(inprocess_order_list)
+ 
+ def orders_at_status(status):
+-    return Order.objects.filter(status=status).order_by('-time_stamp')
++    return Order.objects.filter(status=status).order_by('-time_stamp')[:5]
+ 
+ def orderpayment_list(order):
+     return {
 diff --git a/satchmo/apps/shipping/modules/flat/__init__.py b/satchmo/apps/shipping/modules/dv_flat/__init__.py
 copy from satchmo/apps/shipping/modules/flat/__init__.py
 copy to satchmo/apps/shipping/modules/dv_flat/__init__.py