ernestophone.ens.fr/partitions/migrations/0003_auto_20200716_1749.py

79 lines
2.5 KiB
Python
Raw Normal View History

# Generated by Django 2.2.14 on 2020-07-16 17:49
import django.db.models.expressions
import django.db.models.functions.text
2021-04-29 00:27:33 +02:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
2021-04-29 00:27:33 +02:00
("partitions", "0002_category"),
]
operations = [
migrations.AlterModelOptions(
2021-04-29 00:27:33 +02:00
name="category",
options={
"ordering": ("order",),
"verbose_name": "Categorie",
"verbose_name_plural": "Categories",
},
),
migrations.AlterModelOptions(
2021-04-29 00:27:33 +02:00
name="partition",
options={
"ordering": (
django.db.models.expressions.CombinedExpression(
django.db.models.expressions.Value("-"),
"+",
django.db.models.functions.text.Lower("nom"),
),
),
"verbose_name": "Morceau",
"verbose_name_plural": "Morceaux",
},
),
migrations.AlterModelOptions(
2021-04-29 00:27:33 +02:00
name="partitionset",
options={
"ordering": (
django.db.models.expressions.CombinedExpression(
django.db.models.expressions.Value("-"),
"+",
django.db.models.functions.text.Lower("nom"),
),
),
"verbose_name": "Morceau",
"verbose_name_plural": "Morceaux",
},
),
migrations.AddField(
2021-04-29 00:27:33 +02:00
model_name="category",
name="nom_en",
field=models.CharField(blank=True, max_length=100, null=True),
),
migrations.AddField(
2021-04-29 00:27:33 +02:00
model_name="partitionset",
name="infos_en",
field=models.TextField(
blank=True, null=True, verbose_name="Infos utiles en anglais"
),
),
migrations.AddField(
2021-04-29 00:27:33 +02:00
model_name="partitionset",
name="url",
field=models.URLField(
blank=True,
help_text="Dans Youtube cliquer sur partager puis importer pour récuperer la bonne adresse",
null=True,
verbose_name="Url d'une video youtube",
),
),
migrations.AlterField(
2021-04-29 00:27:33 +02:00
model_name="category",
name="order",
field=models.IntegerField(verbose_name="ordre"),
),
]