Changes between Version 1 and Version 2 of Ticket #35909
- Timestamp:
- Nov 13, 2024, 9:09:14 AM (30 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35909 – Description
v1 v2 3 3 Here's an interesting problem with some backstory for which I never knew Django behaved like this. 4 4 5 So some of the old timers may know that `FormMixin.initial` is a mutable class attribute, and there have been past bug reports concerning this, the main one from 13 years ago is #161385 So some of the old timers may know that `FormMixin.initial` is a **mutable class attribute**, and there have been past bug reports concerning this, the main one from 13 years ago is #16138 6 6 7 7 The fix for this was to call `.copy()` during `get_initial()`.