Skip to content

Commit

Permalink
Fixed compatibility with django-suit and probably some other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
nnseva committed Jul 7, 2020
1 parent 70a6d13 commit d63df7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions csvexport/actions.py
Expand Up @@ -197,7 +197,10 @@ 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

context = modeladmin.admin_site.each_context(request)
return render(request, 'csvexport/csvexport.html', {
**context,
'objects': queryset.order_by('pk'),
'format_form': format_form,
'fields_form': fields_form,
Expand Down

0 comments on commit d63df7d

Please sign in to comment.