Hi,
First of all I would say that I think you should rethink how you store the
ingredients. What I would do is create a recipe model that has a number of
ingredients (an ingredient model with a foreign key to the recipe).
Therefor you would be able to do this in your template:
Ingredients
Hello guys,
I'm learning django and I have some doubts, I suppose that from now on
you'll see me a lot here because my doubts are endless :).
I'm doing a simple recipe app, and some recipes have more ingredients than
others and when I render them, empty fields take up space in the rendered
HT
2 matches
Mail list logo