Made Migrations. Edited. Thought I needed a foreign key for base flavor

parent bfc19a3a
# Generated by Django 3.1.7 on 2021-12-15 15:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0002_baseflavor_customer_ingredient_item_orders_size'),
]
operations = [
migrations.AlterModelOptions(
name='orders',
options={'managed': False, 'verbose_name_plural': 'Orders'},
),
]
......@@ -30,12 +30,24 @@ class Customer(models.Model):
return self.customer_name
class Ingredient(models.Model):
INGREDIENT_CATEGORIES = [
('nuts','nuts'),
('fruits','fruits'),
('chocolate','chocolate'),
('baked','baked'),
('mix-in','mix-in'),
('base','base'),
('topping','topping')
]
REPLENISHED_STOCK = [
('Y', 'Y'),
('N', 'N'),
]
ingredient_id = models.AutoField(primary_key=True)
ingredient_name = models.CharField(max_length=255)
ingredient_name = models.CharField(max_length=255, blank=True)
category = models.CharField(max_length=200, choices=INGREDIENT_CATEGORIES)
quantity = models.IntegerField()
price_per_serving = models.FloatField()
replenished_stock = models.CharField(max_length=1, choices=REPLENISHED_STOCK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment