-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change industries_worked to m2m field
- Loading branch information
1 parent
bc1eb2b
commit 0615303
Showing
7 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Generated by Django 3.1.7 on 2022-09-15 03:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edcs_lists', '0007_auto_20220913_1726'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Industries', | ||
fields=[ | ||
('name', models.CharField(db_index=True, help_text='This is the stored value, required', max_length=250, unique=True, verbose_name='Stored value')), | ||
('display_name', models.CharField(db_index=True, help_text='(suggest 40 characters max.)', max_length=250, unique=True, verbose_name='Name')), | ||
('display_index', models.IntegerField(db_index=True, default=0, help_text='Index to control display order if not alphabetical, not required', verbose_name='display index')), | ||
('field_name', models.CharField(blank=True, editable=False, help_text='Not required', max_length=25, null=True)), | ||
('version', models.CharField(default='1.0', editable=False, max_length=35)), | ||
('id', models.AutoField(primary_key=True, serialize=False)), | ||
], | ||
options={ | ||
'verbose_name': 'Industries', | ||
'verbose_name_plural': 'Industries', | ||
'ordering': ['display_index', 'display_name'], | ||
'abstract': False, | ||
'default_permissions': ('add', 'change', 'delete', 'view', 'export', 'import'), | ||
}, | ||
), | ||
migrations.AddIndex( | ||
model_name='industries', | ||
index=models.Index(fields=['id', 'display_name', 'display_index'], name='edcs_lists__id_67713f_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 3.1.7 on 2022-09-15 03:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edcs_lists', '0008_auto_20220915_0311'), | ||
('edcs_subject', '0039_auto_20220915_0242'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='historicaloccupationalhistory', | ||
name='industries_worked', | ||
), | ||
migrations.RemoveField( | ||
model_name='occupationalhistory', | ||
name='industries_worked', | ||
), | ||
migrations.AddField( | ||
model_name='occupationalhistory', | ||
name='industries_worked', | ||
field=models.ManyToManyField(to='edcs_lists.Industries', verbose_name='If yes, what kind of industry did you work?'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters