Add validators

This commit is contained in:
Edgar P. Burkhart 2022-05-20 16:27:18 +02:00
parent c91994d041
commit 9e7563e38e
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
4 changed files with 20 additions and 15 deletions

View file

@ -6,18 +6,18 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0003_category_parent_alter_category_name'),
("main", "0003_category_parent_alter_category_name"),
]
operations = [
migrations.AlterModelOptions(
name='category',
options={'ordering': ['-parent_id', 'name']},
name="category",
options={"ordering": ["-parent_id", "name"]},
),
migrations.AddField(
model_name='category',
name='full_name',
field=models.CharField(default='', max_length=512),
model_name="category",
name="full_name",
field=models.CharField(default="", max_length=512),
preserve_default=False,
),
]

View file

@ -6,13 +6,13 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_alter_category_options_category_full_name'),
("main", "0004_alter_category_options_category_full_name"),
]
operations = [
migrations.AlterField(
model_name='category',
name='full_name',
field=models.CharField(default='', editable=False, max_length=512),
model_name="category",
name="full_name",
field=models.CharField(default="", editable=False, max_length=512),
),
]