mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
Update csv_export.py
This commit is contained in:
parent
33efd7c2c1
commit
be9e3ccb1a
1 changed files with 3 additions and 3 deletions
|
@ -850,7 +850,7 @@ class DomainRequestExport:
|
||||||
all_requests = DomainRequest.objects.filter(**filter_condition).order_by(*sort_fields).distinct()
|
all_requests = DomainRequest.objects.filter(**filter_condition).order_by(*sort_fields).distinct()
|
||||||
|
|
||||||
# Convert the request to a querystring. Only grab what we need.
|
# Convert the request to a querystring. Only grab what we need.
|
||||||
annotations = all_requests.values("generic_org_type", "federal_type", "submission_date")
|
annotations = all_requests.values("id", "generic_org_type", "federal_type", "submission_date")
|
||||||
|
|
||||||
# Override the default value for domain_type
|
# Override the default value for domain_type
|
||||||
for request in annotations:
|
for request in annotations:
|
||||||
|
@ -954,6 +954,8 @@ class DomainRequestExport:
|
||||||
)
|
)
|
||||||
|
|
||||||
requests_queryset = parsed_requests.values(
|
requests_queryset = parsed_requests.values(
|
||||||
|
# Existing fields
|
||||||
|
"id",
|
||||||
# Custom fields
|
# Custom fields
|
||||||
"all_alternative_domains",
|
"all_alternative_domains",
|
||||||
"all_other_contacts",
|
"all_other_contacts",
|
||||||
|
@ -961,8 +963,6 @@ class DomainRequestExport:
|
||||||
"additional_details",
|
"additional_details",
|
||||||
"creator_approved_domains_count",
|
"creator_approved_domains_count",
|
||||||
"creator_active_requests_count",
|
"creator_active_requests_count",
|
||||||
# Existing fields
|
|
||||||
"id",
|
|
||||||
)
|
)
|
||||||
|
|
||||||
return requests_queryset
|
return requests_queryset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue