diff --git a/apps/map/migrations/0075_auto_20190304_2016.py b/apps/map/migrations/0075_auto_20190304_2016.py new file mode 100644 index 0000000..dc2c17a --- /dev/null +++ b/apps/map/migrations/0075_auto_20190304_2016.py @@ -0,0 +1,48 @@ +# Generated by Django 2.1.1 on 2019-03-04 20:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('map', '0074_auto_20181202_0223'), + ] + + operations = [ + migrations.AddField( + model_name='casestudy', + name='language', + field=models.CharField(blank=True, max_length=16), + ), + migrations.AlterField( + model_name='casestudy', + name='area_of_land', + field=models.IntegerField(help_text='The area of land covered by the project (km²)', verbose_name='Approximate land area'), + ), + migrations.AlterField( + model_name='casestudy', + name='completion_year', + field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], default=None, help_text="Select the year the project's operation and maintenance (O&M) phase began. If the project is not yet in operation, select the year operation is expected to begin as detailed in company information or media.", null=True, verbose_name='Operation start year'), + ), + migrations.AlterField( + model_name='casestudy', + name='entry_name', + field=models.CharField(help_text='Please write the local name, followed by any translated name if necessary.', max_length=128, verbose_name='Project name'), + ), + migrations.AlterField( + model_name='casestudy', + name='land_ownership_details', + field=models.TextField(blank=True, help_text="
Please specify details about land ownership, including conflicting claims, unrecognized customary rights, conflicts around land lease or purchase contracts, etc.
We understand this is a difficult question, so please try to provide just the information you know.
", max_length=256, verbose_name='Land ownership details'), + ), + migrations.AlterField( + model_name='casestudy', + name='start_year', + field=models.IntegerField(blank=True, choices=[(1979, 1979), (1980, 1980), (1981, 1981), (1982, 1982), (1983, 1983), (1984, 1984), (1985, 1985), (1986, 1986), (1987, 1987), (1988, 1988), (1989, 1989), (1990, 1990), (1991, 1991), (1992, 1992), (1993, 1993), (1994, 1994), (1995, 1995), (1996, 1996), (1997, 1997), (1998, 1998), (1999, 1999), (2000, 2000), (2001, 2001), (2002, 2002), (2003, 2003), (2004, 2004), (2005, 2005), (2006, 2006), (2007, 2007), (2008, 2008), (2009, 2009), (2010, 2010), (2011, 2011), (2012, 2012), (2013, 2013), (2014, 2014), (2015, 2015), (2016, 2016), (2017, 2017), (2018, 2018), (2019, 2019), (2020, 2020), (2021, 2021), (2022, 2022), (2023, 2023), (2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029), (2030, 2030), (2031, 2031), (2032, 2032), (2033, 2033), (2034, 2034), (2035, 2035), (2036, 2036), (2037, 2037), (2038, 2038), (2039, 2039), (2040, 2040), (2041, 2041), (2042, 2042), (2043, 2043), (2044, 2044), (2045, 2045), (2046, 2046), (2047, 2047), (2048, 2048), (2049, 2049), (2050, 2050), (2051, 2051), (2052, 2052), (2053, 2053), (2054, 2054), (2055, 2055), (2056, 2056), (2057, 2057), (2058, 2058), (2059, 2059)], help_text='Select the year project construction began. If the project is not yet in construction, select the assumed start year as detailed in company information or media.', null=True, verbose_name='Construction start year'), + ), + migrations.AlterField( + model_name='casestudy', + name='synopsis', + field=models.TextField(help_text='Briefly summarise the project. This will be displayed at the top of the case study page. Maximum 500 chars (about 3½ tweets)', verbose_name='Project synopsis'), + ), + ] diff --git a/apps/map/models.py b/apps/map/models.py index 86f2b3c..34c349c 100644 --- a/apps/map/models.py +++ b/apps/map/models.py @@ -314,6 +314,9 @@ class CaseStudy(models.Model): # Slug derived from entry_name, used in urls for SEO slug = AutoSlugField(populate_from=['entry_name'], editable=False) + # Language this case study is written in + language = models.CharField(max_length=16, blank=True) + ## # Territory info ##