Repository: akvo/akvo-rsr

Issue:
Increase max length of update title to 80 characters
As requested by Isha.
## Test plan

GIVEN the 'place update' page
WHEN an update is placed with a title of 80 characters
THEN this should be possible

GIVEN the 'place update' page
WHEN an update is placed with a title of more than 80 characters
THEN an error message should be displayed



Discussion:

Resolving patch:
diff --git a/akvo/rsr/migrations/0011_auto_20150630_0823.py b/akvo/rsr/migrations/0011_auto_20150630_0823.py
new file mode 100644
--- /dev/null
+++ b/akvo/rsr/migrations/0011_auto_20150630_0823.py
@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import akvo.rsr.fields
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('rsr', '0010_auto_20150615_1149'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='organisation',
+            name='can_become_reporting',
+            field=models.BooleanField(default=False, help_text='Organisation is allowed to become a reporting organisation. Can be set by superusers.', verbose_name='Reportable'),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='organisation',
+            name='language',
+            field=akvo.rsr.fields.ValidXMLCharField(default=b'en', help_text='The main language of the organisation', max_length=2, verbose_name='language', choices=[(b'en', b'English'), (b'es', b'Spanish'), (b'fr', b'French')]),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='partnersite',
+            name='default_language',
+            field=akvo.rsr.fields.ValidXMLCharField(default=b'en', max_length=5, verbose_name='Site UI default language', choices=[(b'en', b'English'), (b'es', b'Spanish'), (b'fr', b'French')]),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='project',
+            name='language',
+            field=akvo.rsr.fields.ValidXMLCharField(default=b'en', help_text='The main language of the project.', max_length=2, choices=[(b'en', b'English'), (b'es', b'Spanish'), (b'fr', b'French')]),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='projectupdate',
+            name='language',
+            field=akvo.rsr.fields.ValidXMLCharField(default=b'en', help_text='The language of the update', max_length=2, choices=[(b'en', b'English'), (b'es', b'Spanish'), (b'fr', b'French')]),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='projectupdate',
+            name='title',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='80 characters', max_length=80, verbose_name='title', db_index=True),
+            preserve_default=True,
+        ),
+    ]
diff --git a/akvo/rsr/models/project_update.py b/akvo/rsr/models/project_update.py
--- a/akvo/rsr/models/project_update.py
+++ b/akvo/rsr/models/project_update.py
@@ -40,7 +40,7 @@ class ProjectUpdate(TimestampsMixin, models.Model):
         'Project', related_name='project_updates', verbose_name=_(u'project')
     )
     user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_(u'user'))
-    title = ValidXMLCharField(_(u'title'), max_length=50, db_index=True, help_text=_(u'50 characters'))
+    title = ValidXMLCharField(_(u'title'), max_length=80, db_index=True, help_text=_(u'80 characters'))
     text = ValidXMLTextField(_(u'text'), blank=True)
     language = ValidXMLCharField(
         max_length=2, choices=settings.LANGUAGES, default='en',


Test patch: