Hey All,

There is a discussion here about building dynamic form select fields
using __init__ on the form.  This, by itself, is not hard.

http://groups.google.com/group/django-users/browse_thread/thread/98bde0a6d818e627

Problem:  I have a formset that needs each form in it to be created in
this dynamic sort of manner.

Possible solutions:

- Create the formset containing no forms, add them individually, and
update the management form.  I had this mostly implemented, but I
don't know how to actually update the values on the management form.
Where do they live?

- Figure out some tricky syntax that lets me pass both the queryset
for a modelchoicefield (and an initial choice for said field) to a
form.  Also figure out how to pass it though a formset to correctly
init all those dynamic forms.  Not having much luck here.

- Post about it, and get told I'm doing it all wrong.  Suggestions are
welcome!

Please help!

James

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to