MonitorField does not update on boolean field
Closed this issue · 1 comments
arosser commented
Problem
I have a MonitorField monitoring a boolean field.
The MonitorField updates when the monitored field value is changed to true.
It does not do the same when the monitored field is changed to false.
Environment
- Django Model Utils version: 4.2.0
- Django version: 4.0.6
- Python version: 3.10.0
Code examples
is_online = models.BooleanField(default=False, verbose_name="online")
last_status_change = MonitorField(monitor="is_online")
arosser commented
The save on my object was not triggering the pre-save signal.