Coverage for src/backend/InvenTree/company/migrations/0040_alter_company_currency.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 17:47 +0000

1# Generated by Django 3.2.4 on 2021-07-02 13:21 

2 

3import InvenTree.validators 

4import common.currency 

5from django.db import migrations, models 

6 

7 

8class Migration(migrations.Migration): 

9 

10 dependencies = [ 

11 ('company', '0039_auto_20210701_0509'), 

12 ] 

13 

14 operations = [ 

15 migrations.AlterField( 

16 model_name='company', 

17 name='currency', 

18 field=models.CharField(blank=True, default=common.currency.currency_code_default, help_text='Default currency used for this company', max_length=3, validators=[InvenTree.validators.validate_currency_code], verbose_name='Currency'), 

19 ), 

20 ]