diff options
| author | Caine <caine@jihakuz.xyz> | 2026-04-02 22:50:49 +0100 |
|---|---|---|
| committer | Caine <caine@jihakuz.xyz> | 2026-04-02 22:50:49 +0100 |
| commit | 963ca2dd5549843e992af718053d08c10d5ec843 (patch) | |
| tree | 89fc281107f8810e16151b82399c098fcb37669f /kitchen/models.py | |
| parent | 946c7de20cab78a47edbeae8fa65fe86a51511dd (diff) | |
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
Diffstat (limited to 'kitchen/models.py')
| -rw-r--r-- | kitchen/models.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/kitchen/models.py b/kitchen/models.py index 0f47f8f..9c3e8d3 100644 --- a/kitchen/models.py +++ b/kitchen/models.py @@ -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"] |
