Hi Folks, While implementing a form with edit inline like functionality, I've hit a wall. In order to tell apart each inline model, I am using the "prefix" parameter to instantiate the form. It works, but if it's a bound form (whether from instance or getting values from a dict), if I pass it a prefix, the rendered form shows empty values. This is easy to test:
def test_prefix(request): f = forms.form_for_instance(request.user)(prefix="user_1") return render_to_response("test.html", {"f":f}) but if I omit the prefix such as in f = forms.form_for_instance(request.user)() the form renders correctly. (the html inputs show the right value) Is there a catch here? I am sure this works, since the newforms-admin must be using prefix to avoid name clashes when retrieving data from the form. Thanks, Arthur --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---