Coverage for app/venv/lib/python3.14/site-packages/weblate/trans/migrations/0003_alter_project_access_control.py: 100%

5 statements  

« 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 

5# Generated by Django 4.2.5 on 2023-09-21 09:18 

6 

7from django.conf import settings 

8from django.db import migrations, models 

9 

10 

11class Migration(migrations.Migration): 

12 dependencies = [ 

13 ("trans", "0002_change_screenshot"), 

14 ] 

15 

16 operations = [ 

17 migrations.AlterField( 

18 model_name="project", 

19 name="access_control", 

20 field=models.IntegerField( 

21 choices=[ 

22 (0, "Public"), 

23 (1, "Protected"), 

24 (100, "Private"), 

25 (200, "Custom"), 

26 ], 

27 db_index=True, 

28 default=settings.DEFAULT_ACCESS_CONTROL, 

29 help_text="How to restrict access to this project is detailed in the documentation.", 

30 verbose_name="Access control", 

31 ), 

32 ), 

33 ]