Hi folks. I'm building a form for entry of addresses. Users will have the option of using a structured st of input fields (appartment, street number, street name, etc.) or using a freeform input (one large input field for things like "Smith Acreage, RR5, 20 mins South of city"). They chose between the two using a radio button. I've implemented this radio button as a ChoiceField with the RadioSelect widget.
Now I'd like to hand-layout the form, so that one of the radio buttons is next to the structured inputs, and the other is next to the freeform input. I can write the input and label tags manually except for one issue: I can't access the checked state of the radio buttons through the BoundField the form gives me. What is the Djangonautic solution to this? I got past the issue by extending BoundField with a __getitem__ method which calls down into the RadioSelect widget, which is slightly modified to know how to return single radio fields, so now I can write {{ form.address_type. 0 }}. I don't like running a patched Django, though. Ideas? Thanks, Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---