general: increase slug max length as test fixtures exceed it (#64294)
This commit is contained in:
parent
fe2b5cabc2
commit
669c6c769b
|
@ -0,0 +1,21 @@
|
|||
# Generated by Django 2.2.28 on 2022-05-15 07:20
|
||||
|
||||
import django.contrib.postgres.fields.jsonb
|
||||
from django.db import migrations, models
|
||||
|
||||
import bijoe.visualization.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('visualization', '0005_text_to_jsonb'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='visualization',
|
||||
name='slug',
|
||||
field=models.SlugField(max_length=200, unique=True, verbose_name='Identifier'),
|
||||
),
|
||||
]
|
|
@ -39,7 +39,7 @@ class JSONEncoder(json.JSONEncoder):
|
|||
|
||||
|
||||
class Visualization(models.Model):
|
||||
slug = models.SlugField(verbose_name=_('Identifier'), unique=True)
|
||||
slug = models.SlugField(verbose_name=_('Identifier'), unique=True, max_length=200)
|
||||
name = models.TextField(verbose_name=_('name'))
|
||||
parameters = JSONField(verbose_name=_('parameters'), encoder_class=JSONEncoder)
|
||||
|
||||
|
|
Loading…
Reference in New Issue