From b7b07aa180d1cb1439a902036db7a2d507083a16 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Sun, 2 Dec 2018 02:10:35 +0000 Subject: [PATCH] Add DELETE markers for fields to be nuked --- .../map/migrations/0073_auto_20181202_0209.py | 48 +++++++++++++++++++ apps/map/models.py | 14 +++--- 2 files changed, 55 insertions(+), 7 deletions(-) create mode 100644 apps/map/migrations/0073_auto_20181202_0209.py diff --git a/apps/map/migrations/0073_auto_20181202_0209.py b/apps/map/migrations/0073_auto_20181202_0209.py new file mode 100644 index 0000000..8ceacb7 --- /dev/null +++ b/apps/map/migrations/0073_auto_20181202_0209.py @@ -0,0 +1,48 @@ +# Generated by Django 2.1.1 on 2018-12-02 02:09 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('map', '0072_auto_20181201_2315'), + ] + + operations = [ + migrations.AlterField( + model_name='casestudy', + name='approximate_total_investment', + field=models.PositiveIntegerField(blank=True, default=None, help_text='Enter the approximate total investment in USD ($).', null=True, verbose_name='DELETE - Approximate total investment'), + ), + migrations.AlterField( + model_name='casestudy', + name='discharge_time', + field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the time it takes to discharge from full capacity at maximum power output (in hours).', max_digits=6, null=True, verbose_name='DELETE - Time for discharge from full capacity'), + ), + migrations.AlterField( + model_name='casestudy', + name='generation_equipment_supplier', + field=models.TextField(blank=True, help_text='Enter the supplier of the generation equipment. (E.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.)', verbose_name='DELETE - Generation equipment supplier(s)'), + ), + migrations.AlterField( + model_name='casestudy', + name='maximum_power_output', + field=models.DecimalField(blank=True, decimal_places=3, help_text='Enter the maximum power output of the storage system in kilowatts (kW).', max_digits=12, null=True, verbose_name='DELETE - Maximum power output'), + ), + migrations.AlterField( + model_name='casestudy', + name='people_affected_indigenous', + field=models.TextField(blank=True, help_text='What group or groups of indigenous people are affected by this project? Please separate by newline.', verbose_name='DELETE - Indigenous people affected'), + ), + migrations.AlterField( + model_name='casestudy', + name='potential_partnerships', + field=models.CharField(blank=True, help_text='Are you looking for partnerships or do you have any clearly identified need? If so, please describe it here.', max_length=512, verbose_name='DELETE - Describe potential partnerships'), + ), + migrations.AlterField( + model_name='casestudy', + name='technical_or_economic_details', + field=models.TextField(blank=True, help_text='Specify any additional technical or economic details relating to the project.', verbose_name='DELETE - Additional technical or economic details'), + ), + ] diff --git a/apps/map/models.py b/apps/map/models.py index 90c33d4..ab5129e 100644 --- a/apps/map/models.py +++ b/apps/map/models.py @@ -431,7 +431,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - merge into affected_communities people_affected_indigenous = models.TextField( - verbose_name=_("Indigenous people affected"), + verbose_name=_("DELETE - Indigenous people affected"), help_text=_("What group or groups of indigenous people are affected by this project? \ Please separate by newline."), blank=True @@ -675,7 +675,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - merge into contractor_or_supplier_of_technology generation_equipment_supplier = models.TextField( - verbose_name=_("Generation equipment supplier(s)"), + verbose_name=_("DELETE - Generation equipment supplier(s)"), help_text=_("Enter the supplier of the generation equipment. (E.g. Siemens Gamesa, GE, Alstom, Vestas, Hanwha Q CELLS, Mitsubishi, First Solar, Jinko Solar, Trina Solar, Suzlon Energy, Statkraft, Shanghai Electric, Ballard Power Systems, Panasonic, etc.)"), blank=True ) @@ -690,7 +690,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - merge into additional_technical_details technical_or_economic_details = models.TextField( - verbose_name=_("Additional technical or economic details"), + verbose_name=_("DELETE - Additional technical or economic details"), help_text=_("Specify any additional technical or economic details relating to the project."), blank=True ) @@ -729,7 +729,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - no merge maximum_power_output = models.DecimalField( - verbose_name=_('Maximum power output'), + verbose_name=_('DELETE - Maximum power output'), help_text=_('Enter the maximum power output of the storage system in kilowatts (kW).'), max_digits=12, decimal_places=3, @@ -739,7 +739,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - no merge discharge_time = models.DecimalField( - verbose_name=_('Time for discharge from full capacity'), + verbose_name=_('DELETE - Time for discharge from full capacity'), help_text=_('Enter the time it takes to discharge from full capacity at maximum power output (in hours).'), max_digits=6, decimal_places=3, @@ -756,7 +756,7 @@ class CaseStudy(models.Model): # XXX Delete after migration - merge into total_investment approximate_total_investment = models.PositiveIntegerField( - verbose_name=_('Approximate total investment'), + verbose_name=_('DELETE - Approximate total investment'), help_text=_('Enter the approximate total investment in USD ($).'), blank=True, default=None, @@ -992,7 +992,7 @@ class CaseStudy(models.Model): # XXX delete after migration - merge with identified_partnerships potential_partnerships = models.CharField( - verbose_name=_("Describe potential partnerships"), + verbose_name=_("DELETE - Describe potential partnerships"), help_text=_("Are you looking for partnerships or do you have any clearly identified need? If so, please \ describe it here."), max_length=512,