generated from 2martens/django-template
Added calories to recipe
This commit is contained in:
19
food_planner/migrations/0004_recipe_calories.py
Normal file
19
food_planner/migrations/0004_recipe_calories.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.0.3 on 2020-02-23 12:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('food_planner', '0003_mealplan'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='recipe',
|
||||
name='calories',
|
||||
field=models.PositiveIntegerField(default=0, help_text='How many calories are contained in one portion?', verbose_name='Calories'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user