Fakultas Ilmu Komputer UI

Commit 545a8ead authored by Dave Nathanael's avatar Dave Nathanael
Browse files

[REFACTOR] Reformat code with auto-formatter

parent 3adac60b
Pipeline #47927 passed with stages
in 13 minutes and 42 seconds
...@@ -105,8 +105,12 @@ class ExportInvestigationCaseView(APIView): ...@@ -105,8 +105,12 @@ class ExportInvestigationCaseView(APIView):
if query_district is not None: if query_district is not None:
cases = cases.filter(case_subject__district=query_district) cases = cases.filter(case_subject__district=query_district)
data = list(cases.prefetch_related("case_subject", data = list(
"reference_case", "author").values(*INVESTIGATION_CASE_RENDERER_FIELDS)) cases.prefetch_related(
"case_subject",
"reference_case",
"author").values(
*INVESTIGATION_CASE_RENDERER_FIELDS))
headers = {"Content-Disposition": 'attachment; filename="cases.csv"'} headers = {"Content-Disposition": 'attachment; filename="cases.csv"'}
return Response(data, headers=headers) return Response(data, headers=headers)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment