You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using django-auditlog to track the changes with django-waffle switches.
Currently when a switch is activated when the Active checkbox is checked (True) or deactivated when the Active checkbox is unchecked (False), auditlog just displays the field that has been changed, in this case the active field -
I am trying to customise this so when the switches Active field has been changed to True auditlog Changes column displays "Changed to Active" and when the switches Active field has been changed to False, auditlog Changes column displays "Changed to Inactive"
Is this possible?
I am trying it out by adding django auditlog to my admin.py and here I can add/take away some columns and also get the value (True/False) of the Changes column for each logged instance for the switches.
Is there a way of updating the change message by doing something like
if latest_switch_change == True:
Changes text = "Changed to active"
else:
Changes text = "Changed to inactive"
The text was updated successfully, but these errors were encountered:
I am using django-auditlog to track the changes with django-waffle switches.
Currently when a switch is activated when the Active checkbox is checked (True) or deactivated when the Active checkbox is unchecked (False), auditlog just displays the field that has been changed, in this case the active field -
I am trying to customise this so when the switches Active field has been changed to True auditlog Changes column displays "Changed to Active" and when the switches Active field has been changed to False, auditlog Changes column displays "Changed to Inactive"
Is this possible?
I am trying it out by adding django auditlog to my admin.py and here I can add/take away some columns and also get the value (True/False) of the Changes column for each logged instance for the switches.
Is there a way of updating the change message by doing something like
The text was updated successfully, but these errors were encountered: