Re: Need to create an edit box connected to one table field

2018-01-22 Thread eileen
Yes, I use Form. Here's it's contents: from django import forms from .widgets import ChainedSelectWidget from .models import Child class SponsorForm(forms.Form): child = forms.IntegerField() class FilterForm(forms.Form): gender = forms.ChoiceField(choices=[(x, x) for x in ('-', 'MAL

Re: Need to create an edit box connected to one table field

2018-01-19 Thread Costja Covtushenko
Hi Eileen, Can you please elaborate a little bit? Do you use Form? Can you provide its code? Also sorry but it is not clear what are you trying to achieve with those value? Is it for searching data in DB? Regards, Constantine C. > On Jan 19, 2018, at 5:08 PM, eil...@themaii.org wrote: > > hand

Need to create an edit box connected to one table field

2018-01-19 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: