Skip to content

Commit

Permalink
fix: disable user notifications on announcement by default
Browse files Browse the repository at this point in the history
It should be opt-in not opt-out.
  • Loading branch information
nijel committed Oct 25, 2024
1 parent 4291947 commit b0aa8ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions weblate/trans/migrations/0025_alter_announcement_notify.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright © Michal Čihař <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

# Generated by Django 5.0.3 on 2024-10-25 17:24

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("trans", "0024_component_key_filter"),
]

operations = [
migrations.AlterField(
model_name="announcement",
name="notify",
field=models.BooleanField(
blank=True,
default=False,
help_text="Send notification to subscribed users.",
verbose_name="Notify users",
),
),
]
2 changes: 1 addition & 1 deletion weblate/trans/models/announcement.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class Announcement(models.Model):
)
notify = models.BooleanField(
blank=True,
default=True,
default=False,
verbose_name=gettext_lazy("Notify users"),
help_text=gettext_lazy("Send notification to subscribed users."),
)
Expand Down

0 comments on commit b0aa8ed

Please sign in to comment.