Add rating + preferences fields, log first cook feedback
- Ingredient.preferences: qualitative notes on how Tom likes things cooked - CookLog.rating: 1-5 score - CookLog.notes: help text updated for feedback - Migration 0002 - First cook logged: Baked Pasta with lardons, rated 2/5 - Bacon lardons preference: don't oven bake, fry separately, not solo protein
This commit is contained in:
+11
-1
@@ -27,6 +27,11 @@ class Ingredient(models.Model):
|
||||
aliases = models.JSONField(
|
||||
default=list, blank=True, help_text='Alternative names, e.g. ["noodles", "egg noodle nests"]'
|
||||
)
|
||||
preferences = models.TextField(
|
||||
blank=True,
|
||||
help_text="How Tom likes this ingredient cooked / qualitative notes. "
|
||||
'E.g. "Don\'t traybake — needs to be fried. Not substantial as sole protein."',
|
||||
)
|
||||
|
||||
class Meta:
|
||||
ordering = ["name"]
|
||||
@@ -210,7 +215,12 @@ class CookLog(models.Model):
|
||||
help_text='Slot choices for meta-recipe, e.g. {"protein": "pork mince", "carb": "noodles"}',
|
||||
)
|
||||
servings = models.IntegerField(default=2)
|
||||
notes = models.TextField(blank=True)
|
||||
rating = models.IntegerField(
|
||||
null=True,
|
||||
blank=True,
|
||||
help_text="1-5 rating. 1=awful, 3=fine, 5=great",
|
||||
)
|
||||
notes = models.TextField(blank=True, help_text="What worked, what didn't, what to change next time")
|
||||
|
||||
class Meta:
|
||||
ordering = ["-date"]
|
||||
|
||||
Reference in New Issue
Block a user