commit
d9c6104208
2 changed files with 6 additions and 9 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Change Log
|
||||
|
||||
|
||||
## v1.0.46 (2022-10-27)
|
||||
|
||||
- Bug fixes
|
||||
|
||||
## v1.0.45 (2022-10-27)
|
||||
|
||||
- Bug fix to revert commit which removed unused engine code
|
||||
|
|
|
|||
|
|
@ -232,21 +232,13 @@ class Alert(models.Model):
|
|||
|
||||
return distinction
|
||||
|
||||
@property
|
||||
def skip_signal(self):
|
||||
try:
|
||||
_ = self.migrator_lock
|
||||
return True
|
||||
except Alert.migrator_lock.RelatedObjectDoesNotExist:
|
||||
return False
|
||||
|
||||
|
||||
def listen_for_alert_model_save(sender, instance, created, *args, **kwargs):
|
||||
AlertGroup = apps.get_model("alerts", "AlertGroup")
|
||||
"""
|
||||
Here we invoke AlertShootingStep by model saving action.
|
||||
"""
|
||||
if created and instance.group.maintenance_uuid is None and not instance.skip_signal:
|
||||
if created and instance.group.maintenance_uuid is None:
|
||||
# RFCT - why additinal save ?
|
||||
instance.save()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue