﻿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
23883	flatatt modifies passed in dict, possibly changing the result of subsequent calls	Tim Heap	Claude Paroz <claude@…>	"The updated `django.forms.utils.flatatt` function modifies the dict passed in, deleting any boolean attributes it encounters. Calling the function twice using the same dict that contains boolean attributes will thus result in different output, as the boolean attributes have been deleted:

{{{#!python
>>> attrs = {'hello': 'world', 'data-true': True, 'data-false': False}
>>> flatatt(attrs)
' hello=""world"" data-true'
>>> flatatt(attrs)
' hello=""world""'
}}}

The function should not modify the dict passed in like it does, leaving it unchanged. Fixing this will make the function behave as expected when called with the same dict twice."	Bug	closed	Uncategorized	dev	Normal	fixed			Accepted	1	0	0	0	0	0
