Re: how to make radio buttion selected as form is loaded

2010-03-16 Thread Daniel Roseman
On Mar 16, 3:08 am, django_jedi wrote: > > Assuming that 'groupA' is a model field, there's no such property as > > 'selections.groupA', because as you've stated, selections is a > > queryset - ie a collection of model instances, not a single one. > > > However in general you'd be better off using

Re: how to make radio buttion selected as form is loaded

2010-03-15 Thread django_jedi
Reporting back on this one. I solved the problem, but perhaps there's a more elegant way of writing this. 1) Discovered that I was not in fact comparing like data types, so {% ifequal %} was bound to fail. (Pardon my newb-ness) 2) Once I fixed that problem, I ended up putting six ifequals toget

Re: how to make radio buttion selected as form is loaded

2010-03-15 Thread django_jedi
> > Assuming that 'groupA' is a model field, there's no such property as > 'selections.groupA', because as you've stated, selections is a > queryset - ie a collection of model instances, not a single one. > > However in general you'd be better off using Django's forms framework, > which outputs fi

Re: how to make radio buttion selected as form is loaded

2010-03-15 Thread Alastair Campbell
On Mon, Mar 15, 2010 at 10:26 AM, Daniel Roseman wrote: > Assuming that 'groupA' is a model field, there's no such property as > 'selections.groupA', because as you've stated, selections is a > queryset - ie a collection of model instances, not a single one. > > However in general you'd be better

Re: how to make radio buttion selected as form is loaded

2010-03-15 Thread Daniel Roseman
On Mar 15, 3:42 am, django_jedi wrote: > Hi All, > > Pardon a newbie. > > I'm building a form that will display workshop selections a person has > made.  They'll be able to update their selections using this form. > > Selections are represented by radio buttons; I'm trying to make a > radio button

how to make radio buttion selected as form is loaded

2010-03-14 Thread django_jedi
Hi All, Pardon a newbie. I'm building a form that will display workshop selections a person has made. They'll be able to update their selections using this form. Selections are represented by radio buttons; I'm trying to make a radio button the "checked" option as I run through a loop, and noth