Josh VanderLinden avatar Josh VanderLinden committed e9dbf6e

Making the admin load faster

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.