mybuddy/core/migrations/0005_auto_20190416_2048.py

361 lines
12 KiB
Python
Raw Normal View History

# Generated by Django 2.2 on 2019-04-17 03:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
2022-02-10 00:00:30 +00:00
("core", "0004_child_picture"),
]
operations = [
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="child",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["last_name", "first_name"],
"verbose_name": "Child",
"verbose_name_plural": "Children",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="diaperchange",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-time"],
"verbose_name": "Diaper Change",
"verbose_name_plural": "Diaper Changes",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="feeding",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-start"],
"verbose_name": "Feeding",
"verbose_name_plural": "Feedings",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="note",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-time"],
"verbose_name": "Note",
"verbose_name_plural": "Notes",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="sleep",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-start"],
"verbose_name": "Sleep",
"verbose_name_plural": "Sleep",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="timer",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-active", "-start", "-end"],
"verbose_name": "Timer",
"verbose_name_plural": "Timers",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="tummytime",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-start"],
"verbose_name": "Tummy Time",
"verbose_name_plural": "Tummy Time",
},
),
migrations.AlterModelOptions(
2022-02-10 00:00:30 +00:00
name="weight",
options={
"default_permissions": ("view", "add", "change", "delete"),
"ordering": ["-date"],
"verbose_name": "Weight",
"verbose_name_plural": "Weight",
},
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="child",
name="birth_date",
field=models.DateField(verbose_name="Birth date"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="child",
name="first_name",
field=models.CharField(max_length=255, verbose_name="First name"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="child",
name="last_name",
field=models.CharField(max_length=255, verbose_name="Last name"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="child",
name="picture",
field=models.ImageField(
blank=True,
null=True,
upload_to="child/picture/",
verbose_name="Picture",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="child",
name="slug",
field=models.SlugField(
editable=False, max_length=100, unique=True, verbose_name="Slug"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="diaperchange",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="diaper_change",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="diaperchange",
name="color",
field=models.CharField(
blank=True,
choices=[
("black", "Black"),
("brown", "Brown"),
("green", "Green"),
("yellow", "Yellow"),
],
max_length=255,
verbose_name="Color",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="diaperchange",
name="solid",
field=models.BooleanField(verbose_name="Solid"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="diaperchange",
name="time",
field=models.DateTimeField(verbose_name="Time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="diaperchange",
name="wet",
field=models.BooleanField(verbose_name="Wet"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="amount",
field=models.FloatField(blank=True, null=True, verbose_name="Amount"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="feeding",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="duration",
field=models.DurationField(
editable=False, null=True, verbose_name="Duration"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="end",
field=models.DateTimeField(verbose_name="End time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="method",
field=models.CharField(
choices=[
("bottle", "Bottle"),
("left breast", "Left breast"),
("right breast", "Right breast"),
],
max_length=255,
verbose_name="Method",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="start",
field=models.DateTimeField(verbose_name="Start time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="feeding",
name="type",
field=models.CharField(
choices=[("breast milk", "Breast milk"), ("formula", "Formula")],
max_length=255,
verbose_name="Type",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="note",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="note",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="note",
name="note",
field=models.TextField(verbose_name="Note"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="note",
name="time",
field=models.DateTimeField(auto_now=True, verbose_name="Time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="sleep",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="sleep",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="sleep",
name="duration",
field=models.DurationField(
editable=False, null=True, verbose_name="Duration"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="sleep",
name="end",
field=models.DateTimeField(verbose_name="End time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="sleep",
name="start",
field=models.DateTimeField(verbose_name="Start time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="active",
field=models.BooleanField(
default=True, editable=False, verbose_name="Active"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="duration",
field=models.DurationField(
editable=False, null=True, verbose_name="Duration"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="end",
field=models.DateTimeField(
blank=True, editable=False, null=True, verbose_name="End time"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="name",
field=models.CharField(
blank=True, max_length=255, null=True, verbose_name="Name"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="start",
field=models.DateTimeField(
default=django.utils.timezone.now, verbose_name="Start time"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="timer",
name="user",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="timers",
to=settings.AUTH_USER_MODEL,
verbose_name="User",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="tummytime",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="tummy_time",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="tummytime",
name="duration",
field=models.DurationField(
editable=False, null=True, verbose_name="Duration"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="tummytime",
name="end",
field=models.DateTimeField(verbose_name="End time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="tummytime",
name="milestone",
field=models.CharField(
blank=True, max_length=255, verbose_name="Milestone"
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="tummytime",
name="start",
field=models.DateTimeField(verbose_name="Start time"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="weight",
name="child",
field=models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
related_name="weight",
to="core.Child",
verbose_name="Child",
),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="weight",
name="date",
field=models.DateField(verbose_name="Date"),
),
migrations.AlterField(
2022-02-10 00:00:30 +00:00
model_name="weight",
name="weight",
field=models.FloatField(verbose_name="Weight"),
),
]