Skip to content
Snippets Groups Projects
Commit 3e3c4d68 authored by magicfelix's avatar magicfelix
Browse files

Respect accepted status of comments in export

parent a9d0bb86
No related branches found
No related tags found
1 merge request!33Resolve "Accepted attribute of comments isn't respected in export"
Pipeline #191805 failed
......@@ -557,6 +557,10 @@ class ProfileExportView(PermissionRequiredMixin, CSVExportView):
model = Profile
permission_required = "abi.export_profiles_rule"
def get_queryset(self):
queryset = super().get_queryset()
return queryset.filter(accepted=True)
def get_filename(self, queryset):
return get_date_filename("profiles")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment