Changes between Version 1 and Version 2 of Ticket #35909


Ignore:
Timestamp:
Nov 13, 2024, 9:09:14 AM (29 hours ago)
Author:
David Sanders
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35909 – Description

    v1 v2  
    33Here's an interesting problem with some backstory for which I never knew Django behaved like this.
    44
    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 #16138
     5So 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
    66
    77The fix for this was to call `.copy()` during `get_initial()`.
Back to Top