Add "Fortified brest milk" feeding type option (#71).

This commit is contained in:
Christopher C. Wells 2019-06-07 07:24:03 -07:00
parent 1d1b994e1a
commit f270af8cd4
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.1 on 2019-06-07 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0007_temperature'),
]
operations = [
migrations.AlterField(
model_name='feeding',
name='type',
field=models.CharField(choices=[('breast milk', 'Breast milk'), ('formula', 'Formula'), ('fortified breast milk', 'Fortified breast milk')], max_length=255, verbose_name='Type'),
),
]

View File

@ -194,7 +194,11 @@ class Feeding(models.Model):
verbose_name=_('Duration')
)
type = models.CharField(
choices=[('breast milk', _('Breast milk')), ('formula', _('Formula'))],
choices=[
('breast milk', _('Breast milk')),
('formula', _('Formula')),
('fortified breast milk', _('Fortified breast milk')),
],
max_length=255,
verbose_name=_('Type')
)