tickets_object = Tickets.objects(id=body['_id']).get()
Билеты - мой мон go класс модели
tickets_object.update(
workflowId=workflowId,
EntityData=entity_json_object['entities_dict'],
StateData=changed_state_dict
)
update () - mongoengine atomi c update
ticket_object_dict={}
ticket_object_dict['workflowId']=tickets_object.workflowId
ticket_object_dict['EntityData']=tickets_object.EntityData
ticket_object_dict['StateData']=tickets_object.StateData
returnHttpResponse(json.dumps({'success':True,
'ticket_object_dict':ticket_object_dict}))