Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Adjust Facility Type list options
Browse files Browse the repository at this point in the history
Adjust Facility Type list options per comment on
#634 (comment)
  • Loading branch information
Kelly Innes committed Jul 10, 2019
1 parent 5786dd1 commit e9495f9
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 8 deletions.
23 changes: 23 additions & 0 deletions src/django/api/migrations/0026_auto_20190710_1922.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.0.13 on 2019-07-10 19:22

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0025_auto_20190708_2040'),
]

operations = [
migrations.AlterField(
model_name='facilityclaim',
name='facility_type',
field=models.CharField(blank=True, choices=[('Cut and Sew / RMG', 'Cut and Sew / RMG'), ('Dyehouse', 'Dyehouse'), ('Embellishments', 'Embellishments'), ('Fabric Mill', 'Fabric Mill'), ('Finishing', 'Finishing'), ('Ginning', 'Ginning'), ('Knitting', 'Knitting'), ('Laundry', 'Laundry'), ('Packing', 'Packing'), ('Scouring', 'Scouring'), ('Screenprinting', 'Screenprinting'), ('Stitching (Shoes)', 'Stitching (Shoes)'), ('Tannery', 'Tannery'), ('Warehouse', 'Warehouse'), ('Weaving', 'Weaving'), ('Other', 'Other')], help_text='The editable facility type for this claim.', max_length=17, null=True, verbose_name='facility type'),
),
migrations.AlterField(
model_name='historicalfacilityclaim',
name='facility_type',
field=models.CharField(blank=True, choices=[('Cut and Sew / RMG', 'Cut and Sew / RMG'), ('Dyehouse', 'Dyehouse'), ('Embellishments', 'Embellishments'), ('Fabric Mill', 'Fabric Mill'), ('Finishing', 'Finishing'), ('Ginning', 'Ginning'), ('Knitting', 'Knitting'), ('Laundry', 'Laundry'), ('Packing', 'Packing'), ('Scouring', 'Scouring'), ('Screenprinting', 'Screenprinting'), ('Stitching (Shoes)', 'Stitching (Shoes)'), ('Tannery', 'Tannery'), ('Warehouse', 'Warehouse'), ('Weaving', 'Weaving'), ('Other', 'Other')], help_text='The editable facility type for this claim.', max_length=17, null=True, verbose_name='facility type'),
),
]
30 changes: 22 additions & 8 deletions src/django/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,24 +393,38 @@ class FacilityClaim(models.Model):
)

CUT_AND_SEW = 'Cut and Sew / RMG'
FABRIC_MILL = 'Fabric Mill'
DYEHOUSE = 'Dyehouse'
LAUNDRY = 'Laundry'
EMBELLISHMENTS = 'Embellishments'
FABRIC_MILL = 'Fabric Mill'
FINISHING = 'Finishing'
TANNERY = 'Tannery'
SPINNING = 'Spinning'
GINNING = 'Ginning'
KNITTING = 'Knitting'
LAUNDRY = 'Laundry'
PACKING = 'Packing'
SCOURING = 'Scouring'
SCREENPRINTING = 'Screenprinting'
STITCHING = 'Stitching (Shoes)'
TANNERY = 'Tannery'
WAREHOUSE = 'Warehouse'
WEAVING = 'Weaving'
OTHER = 'Other'

FACILITY_TYPE_CHOICES = (
(CUT_AND_SEW, CUT_AND_SEW),
(FABRIC_MILL, FABRIC_MILL),
(DYEHOUSE, DYEHOUSE),
(LAUNDRY, LAUNDRY),
(EMBELLISHMENTS, EMBELLISHMENTS),
(FABRIC_MILL, FABRIC_MILL),
(FINISHING, FINISHING),
(TANNERY, TANNERY),
(SPINNING, SPINNING),
(GINNING, GINNING),
(KNITTING, KNITTING),
(LAUNDRY, LAUNDRY),
(PACKING, PACKING),
(SCOURING, SCOURING),
(SCREENPRINTING, SCREENPRINTING),
(STITCHING, STITCHING),
(TANNERY, TANNERY),
(WAREHOUSE, WAREHOUSE),
(WEAVING, WEAVING),
(OTHER, OTHER),
)

Expand Down

0 comments on commit e9495f9

Please sign in to comment.