【发布时间】:2013-10-30 15:10:45
【问题描述】:
当我尝试插入一些值时,是否可以强制 django 进行子查询? 这会产生两个单独的查询:
CommunicationLog.objects.create(
device='asdfasdf',
date_request=CommunicationLog.objects.get(pk=343).date_request,
content_obj_id=338, type_request=1, type_change=2
)
【问题讨论】:
标签: django subquery django-orm