small tweaks to make workflow endpoints load better

This commit is contained in:
AlanCoding
2017-01-12 17:35:55 -05:00
parent 4f168e0989
commit b6493cacd5
2 changed files with 3 additions and 2 deletions

View File

@@ -2370,7 +2370,7 @@ class WorkflowJobTemplateNodeSerializer(WorkflowNodeBaseSerializer):
if view and view.request:
request_method = view.request.method
if request_method in ['PATCH']:
obj = view.get_object()
obj = self.instance
char_prompts = copy.copy(obj.char_prompts)
char_prompts.update(self.extract_char_prompts(data))
else: