﻿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
36759	Fixed variable shadowing in ValidationError.__init__()	Mohit Sharma		"== Problem ==
The `ValidationError.__init__()` method has a variable shadowing bug in the list processing branch. The loop variable `message` shadows the function parameter `message`, which can cause issues when processing lists of validation errors.

== Location ==
`django/core/exceptions.py`, line 175

== Current Code ==
for message in message:  # Variable shadowing!== Solution ==
Rename the loop variable from `message` to `item` to avoid shadowing the function parameter.

== Patch ==
I have a patch ready with:
- Fix: Renamed loop variable to `item`
- Test: Added comprehensive test `test_list_input_processes_all_items()`
- All existing tests pass

== Branch ==
Branch: ticket_12345
PR: [Will add PR link after creating]


== Solution ==
Rename the loop variable from message to item to avoid shadowing the function parameter.
== Patch ==
I have a patch ready with:
Fix: Renamed loop variable to item
Test: Added comprehensive test test_list_input_processes_all_items()
All existing tests pass
== Branch ==
Branch: ticket_12345
PR: [Will add PR link after creating]"	Bug	closed	Core (Other)	dev	Normal	invalid	variable-shadowing ValidationError exceptions	Mohit Sharma	Unreviewed	1	0	0	0	1	0
