﻿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
37407	UUIDTextMixin.process_rhs() mutates the lookup's rhs in place corrupting repeated compilation	Clifford Gama	Clifford Gama	[https://github.com/django/django/blob/cf564bf3a7e0d92bc32292ccff1eca5aeb24b1ef/django/db/models/lookups.py#L791-L795 django/db/models/lookups.py#L791-L795] reassigns `self.rhs` directly instead of working on a copy, so recompiling a shared `Lookup` (e.g. `str(queryset.query)` called twice, or a cloned queryset) wraps the already-stripped rhs in another `Replace()` call each time, growing the SQL/params on every pass.	Bug	assigned	Database layer (models, ORM)	6.1	Normal		mutate		Unreviewed	1	0	0	0	0	0
