0004-general-increase-slug-max-length-as-test-fixtures-ex.patch
bijoe/visualization/migrations/0006_auto_20220515_0920.py | ||
---|---|---|
1 |
# Generated by Django 2.2.28 on 2022-05-15 07:20 |
|
2 | ||
3 |
import django.contrib.postgres.fields.jsonb |
|
4 |
from django.db import migrations, models |
|
5 | ||
6 |
import bijoe.visualization.models |
|
7 | ||
8 | ||
9 |
class Migration(migrations.Migration): |
|
10 | ||
11 |
dependencies = [ |
|
12 |
('visualization', '0005_text_to_jsonb'), |
|
13 |
] |
|
14 | ||
15 |
operations = [ |
|
16 |
migrations.AlterField( |
|
17 |
model_name='visualization', |
|
18 |
name='slug', |
|
19 |
field=models.SlugField(max_length=200, unique=True, verbose_name='Identifier'), |
|
20 |
), |
|
21 |
] |
bijoe/visualization/models.py | ||
---|---|---|
39 | 39 | |
40 | 40 | |
41 | 41 |
class Visualization(models.Model): |
42 |
slug = models.SlugField(verbose_name=_('Identifier'), unique=True) |
|
42 |
slug = models.SlugField(verbose_name=_('Identifier'), unique=True, max_length=200)
|
|
43 | 43 |
name = models.TextField(verbose_name=_('name')) |
44 | 44 |
parameters = JSONField(verbose_name=_('parameters'), encoder_class=JSONEncoder) |
45 | 45 | |
46 |
- |