Skip to content

Commit

Permalink
Merge 6d7430e into 70a6d13
Browse files Browse the repository at this point in the history
  • Loading branch information
nnseva committed Jul 7, 2020
2 parents 70a6d13 + 6d7430e commit 9ea8463
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion csvexport/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ def csvexport(modeladmin, request, queryset):

# If forms are invalid or csv-data couldn't be written return to the form
format_form = format_form if settings.CSV_EXPORT_FORMAT_FORM else None
return render(request, 'csvexport/csvexport.html', {

context = modeladmin.admin_site.each_context(request)
context.update({
'objects': queryset.order_by('pk'),
'format_form': format_form,
'fields_form': fields_form,
'title': _('CSV-Export')
})

return render(request, 'csvexport/csvexport.html', context)

0 comments on commit 9ea8463

Please sign in to comment.