58 lines
1.8 KiB
Python
58 lines
1.8 KiB
Python
# Generated by Django 2.0.2 on 2018-03-13 08:13
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [("gym", "0007_auto_20180313_0857")]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="WorkForm",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("name", models.CharField(max_length=300, verbose_name="nom")),
|
|
],
|
|
options={
|
|
"verbose_name": "forme de travail",
|
|
"verbose_name_plural": "formes de travail",
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name="equipment",
|
|
name="default_repetition_number",
|
|
field=models.PositiveIntegerField(
|
|
default=12, verbose_name="nombre de répétitions par défaut"
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="equipment",
|
|
name="default_work_form",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
to="gym.WorkForm",
|
|
verbose_name="forme de travail par défaut",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="round",
|
|
name="work_form",
|
|
field=models.ForeignKey(
|
|
null=True,
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
to="gym.WorkForm",
|
|
verbose_name="forme de travail",
|
|
),
|
|
),
|
|
]
|