Instead of a formset, you can just put a bunch of forms in a list and
iterate through them.
Why not use a ModelForm and just add your extra fields to it?
Also, there's nothing stopping you from adding an attribute to your
model instances in your form. Then you can iterate through the objects
in your template and use attributes from the instances and form fields
conveniently.
Something like this:
thingies = []
for item in Thingy.objects.filter(...):
item.form = MyAwesomeForm(prefix = item.id)
thingies.append(item)
Then, in your template you can iterate through thingies and use {{
thingy.whatever }} or {{ thingy.form.checked }} when you like.
--
You received this message because you are subscribed to the Google Groups "Django
developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.