diff --git a/cadasta/questionnaires/migrations/0022_auto_20171009_0927.py b/cadasta/questionnaires/migrations/0022_convert_relevant_to_text.py similarity index 66% rename from cadasta/questionnaires/migrations/0022_auto_20171009_0927.py rename to cadasta/questionnaires/migrations/0022_convert_relevant_to_text.py index 0d2875bb2..d23d21562 100644 --- a/cadasta/questionnaires/migrations/0022_auto_20171009_0927.py +++ b/cadasta/questionnaires/migrations/0022_convert_relevant_to_text.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10.8 on 2017-10-09 09:27 +# Generated by Django 1.10.8 on 2017-10-25 14:53 from __future__ import unicode_literals from django.db import migrations, models @@ -15,21 +15,21 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='historicalquestion', name='relevant', - field=models.CharField(blank=True, max_length=300, null=True), + field=models.TextField(blank=True, null=True), ), migrations.AlterField( model_name='historicalquestiongroup', name='relevant', - field=models.CharField(blank=True, max_length=300, null=True), + field=models.TextField(blank=True, null=True), ), migrations.AlterField( model_name='question', name='relevant', - field=models.CharField(blank=True, max_length=300, null=True), + field=models.TextField(blank=True, null=True), ), migrations.AlterField( model_name='questiongroup', name='relevant', - field=models.CharField(blank=True, max_length=300, null=True), + field=models.TextField(blank=True, null=True), ), ] diff --git a/cadasta/questionnaires/models.py b/cadasta/questionnaires/models.py index c4c7c03e8..310c64ec6 100644 --- a/cadasta/questionnaires/models.py +++ b/cadasta/questionnaires/models.py @@ -106,7 +106,7 @@ class Meta: name = models.CharField(max_length=100) label_xlat = JSONField(default={}) - relevant = models.CharField(max_length=300, null=True, blank=True) + relevant = models.TextField(null=True, blank=True) questionnaire = models.ForeignKey(Questionnaire, related_name='question_groups') question_group = models.ForeignKey('QuestionGroup', @@ -141,7 +141,7 @@ class Meta: gps_accuracy = models.FloatField(null=True, blank=True, validators=[validate_accuracy]) hint = models.CharField(max_length=2500, null=True, blank=True) - relevant = models.CharField(max_length=300, null=True, blank=True) + relevant = models.TextField(null=True, blank=True) constraint = models.CharField(max_length=50, null=True, blank=True) questionnaire = models.ForeignKey(Questionnaire, related_name='questions') question_group = models.ForeignKey(QuestionGroup,