Skip to content

Commit ccef808

Browse files
committed
Add migrations as a result of 2to3 converting choices to a list
After running 2to3 the choices defined for the `ExportJob.status` and `Instance.itree_region_default` fields were wrapped with a call to `list()`. This resulted in the order of the choices changing. Any change to the choices defined for a field requires a migration.
1 parent 545e383 commit ccef808

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.17 on 2020-01-08 19:01
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('exporter', '0001_initial'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='exportjob',
17+
name='status',
18+
field=models.IntegerField(choices=[(-1, 'Something went wrong with your export.'), (0, 'Pending'), (1, 'Query returned no trees or planting sites.'), (2, 'User has no permissions on this model'), (3, 'Ready')], default=0),
19+
),
20+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.17 on 2020-01-08 19:01
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations, models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('treemap', '0046_auto_20170907_0937'),
12+
]
13+
14+
operations = [
15+
migrations.AlterField(
16+
model_name='instance',
17+
name='itree_region_default',
18+
field=models.CharField(blank=True, choices=[('CaNCCoJBK', 'Northern California Coast'), ('CenFlaXXX', 'Central Florida'), ('GulfCoCHS', 'Coastal Plain'), ('InlEmpCLM', 'Inland Empire'), ('InlValMOD', 'Inland Valleys'), ('InterWABQ', 'Interior West'), ('LoMidWXXX', 'Lower Midwest'), ('MidWstMSP', 'Midwest'), ('NMtnPrFNL', 'North'), ('NoEastXXX', 'Northeast'), ('PacfNWLOG', 'Pacific Northwest'), ('PiedmtCLT', 'South'), ('SoCalCSMA', 'Southern California Coast'), ('SWDsrtGDL', 'Southwest Desert'), ('TpIntWBOI', 'Temperate Interior West'), ('TropicPacXXX', 'Tropical')], max_length=20, null=True),
19+
),
20+
]

0 commit comments

Comments
 (0)