Coverage for app/venv/lib/python3.14/site-packages/weblate/trans/migrations/0042_project_commit_policy.py: 100%
4 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-07 07:15 +0000
1# Copyright © Michal Čihař <michal@weblate.org>
2#
3# SPDX-License-Identifier: GPL-3.0-or-later
4# Generated by Django 5.2.3 on 2025-07-05 21:16
6from django.db import migrations, models
9class Migration(migrations.Migration):
10 dependencies = [
11 ("trans", "0041_remove_unit_trans_unit_pending_remove_unit_pending"),
12 ]
14 operations = [
15 migrations.AddField(
16 model_name="project",
17 name="commit_policy",
18 field=models.IntegerField(
19 choices=[
20 (0, "Commit all translations regardless of quality"),
21 (20, "Skip translations marked as needing editing"),
22 (30, "Only include approved translations"),
23 ],
24 default=0,
25 help_text="Select which translations should be included when committing changes. More restrictive options will skip translations with potential quality issues.",
26 verbose_name="Translation quality filter",
27 ),
28 ),
29 ]