ModelClass是mongoengine模型类

问题描述 投票:0回答:1
json_output = class_object.serializing_method() final_list.append(json_output) another_class_object = AnotherModelClass(workflowId=body['workflowId'],entities_list=final_list) another_class_object.save()

保存()到mongodb

final_dict={} final_dict['entities_list'] = another_class_object.entities_list return HttpResponse(json.dumps({'entity_definition_dict':entity_definition_dict}))

output-{'uid':“ \” 74b1900ccfbd44234563805ac0279d \“”}

class_object = ModelClass(title = entity_object ['title'],entitys_definition_key = entity_object ['entities_definition_key'],orderId = entity_object [...
python django string response mongoengine
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.