Repository: akvo/akvo-rsr

Issue:
Increase size of result, indicator and indicator period description and comments
As requested by Josje, the size of the descriptions and comments of the results section should be a lot bigger (is 255 chars now, should be about 2000)



Discussion:

Resolving patch:
diff --git a/akvo/rsr/migrations/0006_auto_20150506_1245.py b/akvo/rsr/migrations/0006_auto_20150506_1245.py
new file mode 100644
--- /dev/null
+++ b/akvo/rsr/migrations/0006_auto_20150506_1245.py
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import akvo.rsr.fields
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('rsr', '0005_auto_20150423_1429'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='indicator',
+            name='baseline_comment',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='You can further define the baseline here. (2000 characters)', max_length=2000, verbose_name='baseline comment', blank=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='indicator',
+            name='description',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='You can further define the indicator here. (2000 characters)', max_length=2000, verbose_name='description', blank=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='indicatorperiod',
+            name='actual_comment',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='You can comment on the actual value here. (2000 characters)', max_length=2000, verbose_name='actual comment', blank=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='indicatorperiod',
+            name='target_comment',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='You can comment on the target value here. (2000 characters)', max_length=2000, verbose_name='target comment', blank=True),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='result',
+            name='description',
+            field=akvo.rsr.fields.ValidXMLCharField(help_text='You can provide further information of the result here. (2000 characters)', max_length=2000, verbose_name='description', blank=True),
+            preserve_default=True,
+        ),
+    ]
diff --git a/akvo/rsr/models/indicator.py b/akvo/rsr/models/indicator.py
--- a/akvo/rsr/models/indicator.py
+++ b/akvo/rsr/models/indicator.py
@@ -29,8 +29,8 @@ class Indicator(models.Model):
         help_text=_(u'Is the aim of the project to increase or decrease the value of the '
                     u'indicator?'))
     description = ValidXMLCharField(
-        _(u'description'), blank=True, max_length=255,
-        help_text=_(u'You can further define the indicator here. (255 characters)')
+        _(u'description'), blank=True, max_length=2000,
+        help_text=_(u'You can further define the indicator here. (2000 characters)')
     )
     baseline_year = models.PositiveIntegerField(
         _(u'baseline year'), blank=True, null=True, max_length=4,
@@ -41,8 +41,8 @@ class Indicator(models.Model):
         help_text=_(u'Enter the value of the baseline indicator. (50 characters)')
     )
     baseline_comment = ValidXMLCharField(
-        _(u'baseline comment'), blank=True, max_length=255,
-        help_text=_(u'You can further define the baseline here. (255 characters)')
+        _(u'baseline comment'), blank=True, max_length=2000,
+        help_text=_(u'You can further define the baseline here. (2000 characters)')
     )
 
     def __unicode__(self):
@@ -73,8 +73,8 @@ class IndicatorPeriod(models.Model):
                     u'(50 characters)')
     )
     target_comment = ValidXMLCharField(
-        _(u'target comment'), blank=True, max_length=255,
-        help_text=_(u'You can comment on the target value here. (255 characters)')
+        _(u'target comment'), blank=True, max_length=2000,
+        help_text=_(u'You can comment on the target value here. (2000 characters)')
     )
     actual_value = ValidXMLCharField(
         _(u'actual value'), blank=True, max_length=50,
@@ -82,8 +82,8 @@ class IndicatorPeriod(models.Model):
                     u'(50 characters)')
     )
     actual_comment = ValidXMLCharField(
-        _(u'actual comment'), blank=True, max_length=255,
-        help_text=_(u'You can comment on the actual value here. (255 characters)')
+        _(u'actual comment'), blank=True, max_length=2000,
+        help_text=_(u'You can comment on the actual value here. (2000 characters)')
     )
 
     def __unicode__(self):
diff --git a/akvo/rsr/models/result.py b/akvo/rsr/models/result.py
--- a/akvo/rsr/models/result.py
+++ b/akvo/rsr/models/result.py
@@ -30,8 +30,8 @@ class Result(models.Model):
     )
     aggregation_status = models.NullBooleanField(_(u'aggregation status'), blank=True)
     description = ValidXMLCharField(
-        _(u'description'), blank=True, max_length=255,
-        help_text=_(u'You can provide further information of the result here. (255 characters)')
+        _(u'description'), blank=True, max_length=2000,
+        help_text=_(u'You can provide further information of the result here. (2000 characters)')
     )
 
     def __unicode__(self):


Test patch: