Re: Do not render empty fields

2019-03-11 Thread Andréas Kühne
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

Do not render empty fields

2019-03-10 Thread Barkalez XX
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