Brilliant, thanks
On Jun 18, 4:08 pm, Dennis Kaarsemaker wrote:
> On vr, 2010-06-18 at 14:04 -0700, Nick wrote:
>
> > How would I write this conditional statement in a view?
>
> > if not candidate.office_type == "USREP" or "USSEN" or "DJ" or
> > "ASSOCDJ":
> > office = '%s' % (candida
On vr, 2010-06-18 at 14:04 -0700, Nick wrote:
> How would I write this conditional statement in a view?
>
> if not candidate.office_type == "USREP" or "USSEN" or "DJ" or
> "ASSOCDJ":
> office = '%s' % (candidate.office_type_description)
> else:
> office = []
>
>
> As is s
2 matches
Mail list logo