From 87a3074b1673a310ade98c56b06f0d6f2a4c0b17 Mon Sep 17 00:00:00 2001 From: Rupika Date: Fri, 22 Feb 2019 11:39:12 -0800 Subject: [PATCH] removed number, id, and completed attributes from the JSON data section --- back/backend/views.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/back/backend/views.py b/back/backend/views.py index bd4a9ec..376bee7 100644 --- a/back/backend/views.py +++ b/back/backend/views.py @@ -1,10 +1,8 @@ -from rest_framework.decorators import api_view, parser_classes +from rest_framework.decorators import api_view from django.http import JsonResponse from .models import * from .policy import pol import os -from rest_framework.exceptions import ParseError -from rest_framework.parsers import FileUploadParser, MultiPartParser def get_report(report_pk): """ @@ -81,13 +79,10 @@ def get_fields(s_id): # function that gets the corresponding datatype value = Field.get_datatype(i) data = { - "completed": i.completed, "field_name": i.field_name, "label": i.label, "field_type": i.field_type, - "number": i.number, "value": value, - "id": i.id, } # append the fields to array # use copy() to avoid overwriting