django-oscar / django-oscar

Domain-driven e-commerce for Django

Home Page:http://oscarcommerce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offer order export from offer detail view only includes page 1 in export.

joeyjurjens opened this issue · comments

commented

If you go to the offer detail view in the dashboard, and this offer has been used in orders, you can generate an export.

See:

def render_to_response(self, context):
if self.request.GET.get('format') == 'csv':
formatter = OrderDiscountCSVFormatter()
return formatter.generate_response(context['order_discounts'],
offer=self.offer)
return super().render_to_response(context)

However, if you got multiple pages of orders, only the first page will be in the export.
It makes more sense when you generate an export, it will include all the orders.