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
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
>
> 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
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
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
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
6 matches
Mail list logo