Skip to content

Commit

Permalink
Merge pull request #5158 from grafana/dev
Browse files Browse the repository at this point in the history
v1.10.6
  • Loading branch information
iskhakov authored Oct 10, 2024
2 parents 51d4ef9 + 4957851 commit fc91b11
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.2.15 on 2024-10-10 11:02

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('alerts', '0060_relatedincident'),
]

operations = [
migrations.AlterField(
model_name='alertgroup',
name='resolved_by_alert',
field=models.ForeignKey(db_constraint=False, default=None, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='resolved_alert_groups', to='alerts.alert'),
),
]
3 changes: 2 additions & 1 deletion engine/apps/alerts/models/alert_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ class AlertGroup(AlertGroupSlackRenderingMixin, EscalationSnapshotMixin, models.

resolved_by_alert = models.ForeignKey(
"alerts.Alert",
on_delete=models.SET_NULL,
on_delete=models.DO_NOTHING,
db_constraint=False,
null=True,
default=None,
related_name="resolved_alert_groups",
Expand Down

0 comments on commit fc91b11

Please sign in to comment.