Changes between Initial Version and Version 1 of Ticket #37122
- Timestamp:
- May 28, 2026, 2:54:03 AM (61 minutes ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37122 – Description
initial v1 5 5 Why? 6 6 7 ``` python 7 8 {{{ 9 8 10 def has_changed(self, initial, data): 9 11 # here we miss the check for disabled … … 12 14 ... 13 15 14 ``` 16 }}} 17 15 18 As we see, has_changed from the base is called and if successful, True is returned. But we have no additional check for disabled. 16 19 17 20 Fix: 18 21 19 ``` python 22 23 {{{ 24 20 25 def has_changed(self, initial, data): 21 26 if self.disabled: … … 24 29 return True 25 30 ... 31 }}} 26 32 27 ```28 33 29 34 This corrupts the changed fields in the history of admin.