i need a form with "records" generated from the db.
For each DB record, in addition to form fields, it need to contain also images & record description, e.g.
<tr> <td> rec 15, <img src=fnamex.jpg>, <input name=inp15> <checkbox name=chk15> </td> </tr>
so i'm confused about the how, when & where to create the form:
- should the form generation method occur in my "model.py" ? in the template ?
- how do I keep all the element of a "record" together for later iteration in the template ?
- where should i add the "extra" data (e.g. image source & title) ? to the form object? in a paralel object list?