diff --git a/horilla_views/generic/cbv/views.py b/horilla_views/generic/cbv/views.py index c0b0c3188..ea5e360e8 100644 --- a/horilla_views/generic/cbv/views.py +++ b/horilla_views/generic/cbv/views.py @@ -398,8 +398,8 @@ class HorillaListView(ListView): from import_export import fields, resources request = getattr(_thread_locals, "request", None) - ids = eval_validate(request.GET["ids"]) - _columns = eval_validate(request.GET["columns"]) + ids = eval_validate(request.POST["ids"]) + _columns = eval_validate(request.POST["columns"]) queryset = self.model.objects.filter(id__in=ids) _model = self.model diff --git a/horilla_views/templates/generic/export_fields_modal.html b/horilla_views/templates/generic/export_fields_modal.html index 6933d865f..6d07cafd8 100644 --- a/horilla_views/templates/generic/export_fields_modal.html +++ b/horilla_views/templates/generic/export_fields_modal.html @@ -18,17 +18,21 @@
+ {% csrf_token %} + +
diff --git a/horilla_views/templates/generic/quick_actions.html b/horilla_views/templates/generic/quick_actions.html index 73773592b..8c52201a1 100644 --- a/horilla_views/templates/generic/quick_actions.html +++ b/horilla_views/templates/generic/quick_actions.html @@ -79,7 +79,6 @@ $('#bulk_update_get_form{{view_id}}').click() " > -