I wanted to send a notification to the user (or invoke any function in that case) if the attribute of the object is changed (For eg, an attribute ‘is_checked’ or similar) from the admin panel. Upon digging the django source-code I found the log entry class that is used in the admin panel.
logs = models.LogEntry.objects.all()
for log in logs:
if log.action_flag == 2:
if log.change_message == “[‘is_checked’]”:
The above function does the job but I am unsure about the ways to invoke this function. Do I call it every 5mins or what are the better ways?