Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-30 Thread Melvyn Sopacua
On vrijdag 26 januari 2018 22:25:55 CET eil...@themaii.org wrote: > well, you certainly got me correct! I'm fairly new to python - didn't do > much coding to learn. Trial by fire, sort of. and the original person who > put this together is now gone from the company and won't answer any > outstandin

Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-26 Thread eileen
well, you certainly got me correct! I'm fairly new to python - didn't do much coding to learn. Trial by fire, sort of. and the original person who put this together is now gone from the company and won't answer any outstanding questions. Plus, I *think* he got most of the code from 3rd party s

Re: how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-26 Thread Melvyn Sopacua
There are a bunch of issues with this code: 1) Spell Physical correctly: > 2 - Phyiscal > if form.data['handicapped'] is 'Physical' or 'Mental': > handicapped = forms.ChoiceField(choices=[(x, x) for x in ('---', > 'Mental', 'Physcal')], required=False) Comparison of non

how do I handle a dropdown in Django whose only purpose is to get data.

2018-01-24 Thread eileen
I need to create an edit box called handicapped with three drop down options on the display: 0 - none 1 - Mental 2 - Phyiscal and connect it to the handicapped field init(11) in the family database I know I have to do something like: if form['handicapped'].data == 1 or 2: