Open fspegni opened 6 years ago
Objects that can be monitored should have a field for storing the number of users monitoring them.
Such cache value should be updated using django signal's (listening to save actions on instances of Monitoring model).
signal
See also: MonitorizedItem.all_monitoring_count and MonitorizedItem.all_monitoring_users
MonitorizedItem.all_monitoring_count
MonitorizedItem.all_monitoring_users
Objects that can be monitored should have a field for storing the number of users monitoring them.
Such cache value should be updated using django
signal
's (listening to save actions on instances of Monitoring model).See also:
MonitorizedItem.all_monitoring_count
andMonitorizedItem.all_monitoring_users