workout/gym/migrations/0008_auto_20180313_0913.py

59 lines
1.8 KiB
Python
Raw Normal View History

2018-03-13 09:24:12 +01:00
# 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):
2019-06-23 15:39:13 +02:00
dependencies = [("gym", "0007_auto_20180313_0857")]
2018-03-13 09:24:12 +01:00
operations = [
migrations.CreateModel(
2019-06-23 15:39:13 +02:00
name="WorkForm",
2018-03-13 09:24:12 +01:00
fields=[
2019-06-23 15:39:13 +02:00
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=300, verbose_name="nom")),
2018-03-13 09:24:12 +01:00
],
options={
2019-06-23 15:39:13 +02:00
"verbose_name": "forme de travail",
"verbose_name_plural": "formes de travail",
2018-03-13 09:24:12 +01:00
},
),
migrations.AddField(
2019-06-23 15:39:13 +02:00
model_name="equipment",
name="default_repetition_number",
field=models.PositiveIntegerField(
default=12, verbose_name="nombre de répétitions par défaut"
),
2018-03-13 09:24:12 +01:00
),
migrations.AddField(
2019-06-23 15:39:13 +02:00
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",
),
2018-03-13 09:24:12 +01:00
),
migrations.AddField(
2019-06-23 15:39:13 +02:00
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",
),
2018-03-13 09:24:12 +01:00
),
]