Пример #1
0
 def get_dashboard_blocks(self, request):
     import shuup.admin.modules.sales_dashboard.dashboard as dashboard
     currency = self.currency
     if not currency:
         return
     yield dashboard.get_sales_of_the_day_block(request, currency)
     yield dashboard.get_lifetime_sales_block(request, currency)
     yield dashboard.get_avg_purchase_size_block(request, currency)
     yield dashboard.get_open_orders_block(request, currency)
     yield dashboard.get_order_value_chart_dashboard_block(request, currency)
Пример #2
0
 def get_dashboard_blocks(self, request):
     import shuup.admin.modules.sales_dashboard.dashboard as dashboard
     currency = self.currency
     if not currency:
         return
     yield dashboard.get_sales_of_the_day_block(request, currency)
     yield dashboard.get_lifetime_sales_block(request, currency)
     yield dashboard.get_avg_purchase_size_block(request, currency)
     yield dashboard.get_open_orders_block(request, currency)
     yield dashboard.get_order_value_chart_dashboard_block(
         request, currency)