mirror of https://github.com/snachodog/mybuddy.git
Update core migrations.
This commit is contained in:
parent
72b1f3e37b
commit
60226dd9c5
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Generated by Django 1.11.4 on 2017-08-16 19:50
|
# Generated by Django 1.11.4 on 2017-08-17 15:22
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
|
@ -39,8 +39,8 @@ class Migration(migrations.Migration):
|
||||||
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diaper_change', to='core.Child')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='diaper_change', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['-time'],
|
'ordering': ['-time'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -51,11 +51,12 @@ class Migration(migrations.Migration):
|
||||||
('end', models.DateTimeField()),
|
('end', models.DateTimeField()),
|
||||||
('type', models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula')], max_length=255)),
|
('type', models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula')], max_length=255)),
|
||||||
('method', models.CharField(choices=[('bottle', 'Bottle'), ('left breast', 'Left breast'), ('right breast', 'Right breast')], max_length=255)),
|
('method', models.CharField(choices=[('bottle', 'Bottle'), ('left breast', 'Left breast'), ('right breast', 'Right breast')], max_length=255)),
|
||||||
|
('amount', models.FloatField(blank=True, null=True)),
|
||||||
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feeding', to='core.Child')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='feeding', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['-start'],
|
'ordering': ['-start'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -67,8 +68,8 @@ class Migration(migrations.Migration):
|
||||||
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='note', to='core.Child')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='note', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['-time'],
|
'ordering': ['-time'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
|
@ -85,6 +86,20 @@ class Migration(migrations.Migration):
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Timer',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(blank=True, max_length=255)),
|
||||||
|
('start', models.DateTimeField(auto_now=True)),
|
||||||
|
('end', models.DateTimeField(blank=True, editable=False, null=True)),
|
||||||
|
('active', models.BooleanField(default=True, editable=False)),
|
||||||
|
],
|
||||||
|
options={
|
||||||
|
'ordering': ['active', '-start'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
|
},
|
||||||
|
),
|
||||||
migrations.CreateModel(
|
migrations.CreateModel(
|
||||||
name='TummyTime',
|
name='TummyTime',
|
||||||
fields=[
|
fields=[
|
||||||
|
@ -95,8 +110,8 @@ class Migration(migrations.Migration):
|
||||||
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tummy_time', to='core.Child')),
|
('child', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tummy_time', to='core.Child')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'default_permissions': ('view', 'add', 'change', 'delete'),
|
|
||||||
'ordering': ['-start'],
|
'ordering': ['-start'],
|
||||||
|
'default_permissions': ('view', 'add', 'change', 'delete'),
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue