﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22101	Querysets using F() expressions with time deltas are not cloned correctly.	Tai Lee	nobody	"This appears to be a regression in 1.6. Possibly refs #16759.

Looks like expression nodes are no longer deep copied, so when a query that uses `DateModifierNode` is cloned, the second clone to be evaluated will generate an exception when the `DateModifierNode` tries to pop the timedelta off `node.children`.

Suspected fix is to persist the timedelta as an attribute on `DateModifierNode` expression in `__init__` so we don't need to pop it off `node.children` when the node is evaluated.
"	Bug	closed	Database layer (models, ORM)	1.6	Normal	duplicate	queryset timedelta expression regression		Unreviewed	1	0	0	0	0	0
