weblate/ci/migrate-scripts/setup-cleanup-settings.py
Michal Čihař b9bfd38613
feat(add-ons): migrate cleanup settings to add-ons (#19505)
These were introduced before add-ons existed, but now they overlap with
site-wide installed add-ons while not having the same visibility.

Fixes #19307
2026-05-12 10:00:41 +00:00

13 lines
312 B
Python
Vendored

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: GPL-3.0-or-later
"""Add add-on for cleanup settings migration testing."""
from weblate.addons.models import Addon
Addon.objects.bulk_create(
[
Addon(name="weblate.removal.comments", configuration={"age": 3}),
]
)