43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
# Generated by Django 2.0.5 on 2018-05-21 23:32
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("manuels", "0001_initial"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Editor",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("name", models.CharField(max_length=50, verbose_name="nom")),
|
|
],
|
|
options={
|
|
"verbose_name": "éditeur",
|
|
"verbose_name_plural": "éditeurs",
|
|
},
|
|
),
|
|
migrations.AlterField(
|
|
model_name="book",
|
|
name="editor",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="manuels.Editor",
|
|
verbose_name="éditeur",
|
|
),
|
|
),
|
|
]
|