This commit is contained in:
Rachid Mrad 2023-10-27 15:03:34 -04:00
parent 98a9604ef3
commit 4803aaf971
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
3 changed files with 59 additions and 51 deletions

View file

@ -762,18 +762,14 @@ class DomainAdmin(ListHeaderAdmin):
def export_data_full(self, request):
# Smaller export based on 1
response = HttpResponse(content_type="text/csv")
response[
"Content-Disposition"
] = 'attachment; filename="current-full.csv"'
response["Content-Disposition"] = 'attachment; filename="current-full.csv"'
csv_export.export_data_full_to_csv(response)
return response
def export_data_federal(self, request):
# Federal only
response = HttpResponse(content_type="text/csv")
response[
"Content-Disposition"
] = 'attachment; filename="current-federal.csv"'
response["Content-Disposition"] = 'attachment; filename="current-federal.csv"'
csv_export.export_data_federal_to_csv(response)
return response