Skip to content

Commit

Permalink
Merge pull request #227 from Pijuli/slug_length_fix
Browse files Browse the repository at this point in the history
Extend to 2000 chars field slug max size
  • Loading branch information
stephenmcd committed May 23, 2018
2 parents fe518ad + 983e85b commit fb51b97
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions forms_builder/forms/migrations/0003_auto_20180522_0820.py
@@ -0,0 +1,18 @@
# Generated by Django 2.0.4 on 2018-05-22 08:20

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('forms', '0002_auto_20160418_0120'),
]

operations = [
migrations.AlterField(
model_name='field',
name='slug',
field=models.SlugField(blank=True, default='', max_length=2000, verbose_name='Slug'),
),
]
2 changes: 1 addition & 1 deletion forms_builder/forms/models.py
Expand Up @@ -173,7 +173,7 @@ class AbstractField(models.Model):
"""

label = models.CharField(_("Label"), max_length=settings.LABEL_MAX_LENGTH)
slug = models.SlugField(_('Slug'), max_length=100, blank=True,
slug = models.SlugField(_('Slug'), max_length=2000, blank=True,
default="")
field_type = models.IntegerField(_("Type"), choices=fields.NAMES)
required = models.BooleanField(_("Required"), default=True)
Expand Down

0 comments on commit fb51b97

Please sign in to comment.