Skip to content

Commit

Permalink
Fix typo in notifications: risk_acceptance_expiration (#8869)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik authored Oct 30, 2023
1 parent 690385d commit 581f87b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 4.1.11 on 2023-10-22 20:50

from django.db import migrations
import multiselectfield.db.fields


class Migration(migrations.Migration):

dependencies = [
('dojo', '0190_system_settings_experimental_fp_history'),
]

operations = [
migrations.AlterField(
model_name='notifications',
name='risk_acceptance_expiration',
field=multiselectfield.db.fields.MultiSelectField(blank=True, choices=[('slack', 'slack'), ('msteams', 'msteams'), ('mail', 'mail'), ('alert', 'alert')], default=('alert', 'alert'), help_text='Get notified of (upcoming) Risk Acceptance expiries', max_length=24, verbose_name='Risk Acceptance Expiration'),
),
]
2 changes: 1 addition & 1 deletion dojo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3763,7 +3763,7 @@ class Notifications(models.Model):
sla_breach = MultiSelectField(choices=NOTIFICATION_CHOICES, default=DEFAULT_NOTIFICATION, blank=True,
verbose_name=_('SLA breach'),
help_text=_('Get notified of (upcoming) SLA breaches'))
risk_acceptance_expiration = MultiSelectField(choices=NOTIFICATION_CHOICES, default='alert', blank=True,
risk_acceptance_expiration = MultiSelectField(choices=NOTIFICATION_CHOICES, default=DEFAULT_NOTIFICATION, blank=True,
verbose_name=_('Risk Acceptance Expiration'),
help_text=_('Get notified of (upcoming) Risk Acceptance expiries'))

Expand Down

0 comments on commit 581f87b

Please sign in to comment.