Commit 067a4f2
committed
fix(breads): add ordered_ingredients property to fix template syntax error (#565)
- Add ordered_ingredients property to BreadPage model
- Return ingredients ordered by sort_order, then name
- Update template to use property instead of method call
- Fixes TemplateSyntaxError from .order_by() in template1 parent c9fe925 commit 067a4f2
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
187 | 192 | | |
188 | 193 | | |
189 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments