Skip to content

Commit

Permalink
Convert relevant field to TextField
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Nov 7, 2017
1 parent cc4c065 commit d67e6cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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),
),
]
4 changes: 2 additions & 2 deletions cadasta/questionnaires/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d67e6cd

Please sign in to comment.