Changes between Initial Version and Version 1 of Ticket #37122


Ignore:
Timestamp:
May 28, 2026, 2:54:03 AM (61 minutes ago)
Author:
alex
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37122 – Description

    initial v1  
    55Why?
    66
    7 ``` python
     7
     8{{{
     9
    810def has_changed(self, initial, data):
    911    # here we miss the check for disabled
     
    1214    ...
    1315
    14 ```
     16}}}
     17
    1518As we see, has_changed from the base is called and if successful, True is returned. But we have no additional check for disabled.
    1619
    1720Fix:
    1821
    19 ``` python
     22
     23{{{
     24
    2025def has_changed(self, initial, data):
    2126    if self.disabled:
     
    2429        return True
    2530    ...
     31}}}
    2632
    27 ```
    2833
    2934This corrupts the changed fields in the history of admin.
Back to Top