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

testing

parent cb376dc1
......@@ -62,8 +62,6 @@ def tmp_add_edit_delete(tmp_request_body,
serializer.is_valid(raise_exception=True)
old_instance = model_to_dict(tmp_instance)
# print(old_instance)
# print(type(old_instance))
self.perform_update(serializer)
new_instance = serializer.data
......@@ -80,6 +78,9 @@ def tmp_add_edit_delete(tmp_request_body,
"template_no": template_no
}
data = {**i, **tmp_code}
tmp_instance = queryset.objects.get(
pk=i['id']
)
serializer = serializer_data(data=data)
serializer.is_valid(raise_exception=True)
old_instance = model_to_dict(tmp_instance)
......
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