Skip to content

Commit 24b7944

Browse files
committed
FormidableItem.value field size now has no limit (TextField)
1 parent c6c5a7d commit 24b7944

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ master (unreleased)
1111
- Add configuration for py.test
1212
- Reactivate accidentally skipped ``test_validations.py`` tests
1313
- Add JSON migrations
14+
- ``FormidableItem.value`` field size now has no limit (``TextField``)
1415

1516
Release 1.0.2 (2017-10-10)
1617
==========================
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('formidable', '0007_drop_preset_tables'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='item',
16+
name='value',
17+
field=models.TextField(),
18+
),
19+
]

formidable/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def __str__(self):
109109
@python_2_unicode_compatible
110110
class Item(models.Model):
111111
field = models.ForeignKey(Field, related_name='items')
112-
value = models.CharField(max_length=256)
112+
value = models.TextField()
113113
label = models.TextField()
114114
order = models.IntegerField()
115115
help_text = models.TextField(blank=True, null=True)

0 commit comments

Comments
 (0)