Commit e84f0dfe authored by John Red Medrano's avatar John Red Medrano

added bolean handler on the history of approber

parent bf028a7c
...@@ -1151,7 +1151,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet): ...@@ -1151,7 +1151,7 @@ class ChangeRequestFormsViewset(viewsets.ModelViewSet):
).values().order_by('-created') ).values().order_by('-created')
for data in history: for data in history:
data = data['toValue'].replace("'", '"').replace('None', '""') data = data['toValue'].replace("'", '"').replace('None', '""').replace('True', '""')
convert = json.loads(data) convert = json.loads(data)
history_dict = { history_dict = {
......
...@@ -183,9 +183,6 @@ class UserViewSet(viewsets.ModelViewSet): ...@@ -183,9 +183,6 @@ class UserViewSet(viewsets.ModelViewSet):
raise ParseError( raise ParseError(
'Cannot update this record the user has a record on change request it might cause a data error' 'Cannot update this record the user has a record on change request it might cause a data error'
) )
serializer = self.get_serializer( serializer = self.get_serializer(
instance, data=request.data, partial=partial instance, data=request.data, partial=partial
......
Markdown is supported
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