I'm toying around with converting my forms over to newforms and have
come across a problem which may be just user error.

I have a form:

class AddForm(Form):
    flags = MultipleChoiceField(choices=[("A", "Aquatic"), ("C",
"Canopy")])

I have a view, which for the moment, is just trying to redisplay the
contents of the form:

def view(request):
    form = AddForm(request.POST)
    return render_to_response("test.html", {"form": form})

The problem is coming from request.POST. It doesn't handle same-named
fields. The data is there in request.raw_post_data.

This worked before when the checkbox fields had unique names, but now
they all have identical names.

Am I approaching this wrong?


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to