Fix listen_for_usernotificationpolicylogrecord_model_save (#146)
This commit is contained in:
parent
5dd0821f4c
commit
e148d6fc8a
1 changed files with 2 additions and 1 deletions
|
|
@ -314,7 +314,8 @@ class UserNotificationPolicyLogRecord(models.Model):
|
|||
|
||||
@receiver(post_save, sender=UserNotificationPolicyLogRecord)
|
||||
def listen_for_usernotificationpolicylogrecord_model_save(sender, instance, created, *args, **kwargs):
|
||||
alert_group_pk = instance.alert_group.drop_cached_after_resolve_report_json()
|
||||
instance.alert_group.drop_cached_after_resolve_report_json()
|
||||
alert_group_pk = instance.alert_group.pk
|
||||
if instance.type != UserNotificationPolicyLogRecord.TYPE_PERSONAL_NOTIFICATION_FINISHED:
|
||||
logger.debug(
|
||||
f"send_update_log_report_signal for alert_group {alert_group_pk}, "
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue