From 0f0f78bd2490fc5423515e9ef6a2c984a23d75c2 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Sat, 31 Mar 2018 16:33:35 +1100 Subject: [PATCH] Fix wording of 4.4. Closes #33 --- .../map/migrations/0045_auto_20180331_0517.py | 32 +++++++++++++++++++ apps/map/models.py | 11 +++---- 2 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 apps/map/migrations/0045_auto_20180331_0517.py diff --git a/apps/map/migrations/0045_auto_20180331_0517.py b/apps/map/migrations/0045_auto_20180331_0517.py new file mode 100644 index 0000000..09d05c9 --- /dev/null +++ b/apps/map/migrations/0045_auto_20180331_0517.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.6 on 2018-03-31 05:17 +from __future__ import unicode_literals + +from django.db import migrations, models +import phonenumber_field.modelfields + + +class Migration(migrations.Migration): + + dependencies = [ + ('map', '0044_auto_20180331'), + ] + + operations = [ + migrations.AlterField( + model_name='casestudy', + name='contact_phone', + field=phonenumber_field.modelfields.PhoneNumberField(blank=True, help_text='Please include the international prefix, beginning with "+".', max_length=128, verbose_name='Phone number'), + ), + migrations.AlterField( + model_name='casestudy', + name='shown_on_other_platforms', + field=models.BooleanField(default=True, verbose_name='Is this case study shown on other platforms?'), + ), + migrations.AlterField( + model_name='casestudy', + name='shown_on_other_platforms_detail', + field=models.TextField(blank=True, default='', help_text='Please provide links to other places the case study appears.', verbose_name='Shown on other platforms - Detail'), + preserve_default=False, + ), + ] diff --git a/apps/map/models.py b/apps/map/models.py index 028326e..10f0cbd 100644 --- a/apps/map/models.py +++ b/apps/map/models.py @@ -1000,17 +1000,14 @@ class CaseStudy(models.Model): # 4.4 shown_on_other_platforms = models.BooleanField( - verbose_name=_("Show on other platforms?"), - help_text=_("Tick the box if you would like us to show this case study on other social media platforms"), + verbose_name=_("Is this case study shown on other platforms?"), default=True ) # 4.4.1 - shown_on_other_platforms_detail = models.CharField( - verbose_name=_("Show on other platforms - Detail"), - help_text=_("List the social media platforms that you would like us to specifically publish the case study on"), - max_length=128, - null=True, + shown_on_other_platforms_detail = models.TextField( + verbose_name=_("Shown on other platforms - Detail"), + help_text=_("Please provide links to other places the case study appears."), blank=True )