manuels-scolaires/manuels/migrations/0002_auto_20180522_0132.py

44 lines
1.2 KiB
Python
Raw Normal View History

2018-05-22 01:35:05 +02:00
# Generated by Django 2.0.5 on 2018-05-21 23:32
import django.db.models.deletion
2021-07-10 12:11:58 +02:00
from django.db import migrations, models
2018-05-22 01:35:05 +02:00
class Migration(migrations.Migration):
dependencies = [
2021-07-10 12:11:58 +02:00
("manuels", "0001_initial"),
2018-05-22 01:35:05 +02:00
]
operations = [
migrations.CreateModel(
2021-07-10 12:11:58 +02:00
name="Editor",
2018-05-22 01:35:05 +02:00
fields=[
2021-07-10 12:11:58 +02:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=50, verbose_name="nom")),
2018-05-22 01:35:05 +02:00
],
options={
2021-07-10 12:11:58 +02:00
"verbose_name": "éditeur",
"verbose_name_plural": "éditeurs",
2018-05-22 01:35:05 +02:00
},
),
migrations.AlterField(
2021-07-10 12:11:58 +02:00
model_name="book",
name="editor",
field=models.ForeignKey(
null=True,
on_delete=django.db.models.deletion.SET_NULL,
to="manuels.Editor",
verbose_name="éditeur",
),
2018-05-22 01:35:05 +02:00
),
]