Re: Preset foreign key in Model Form

2009-06-19 Thread Daniel Roseman
On Jun 19, 1:36 am, adelaide_mike wrote: > Try again.  I am new to Django and the web, so I do not know all the > right vocabulary.  Sorry. > > I need my ModelForm to be displayed, for creation of a new record, > with a date field and a foreign key (pointing to the Source table) > selector list a

Re: Preset foreign key in Model Form

2009-06-19 Thread Rama Vadakattu
i think ForiegnKey uses ChoiceField as it has to display n number of choices. How should we intialize choice field? --- it should in this form source = [(actual value,display value),(actual value,display value) ]

Preset foreign key in Model Form

2009-06-18 Thread adelaide_mike
Try again. I am new to Django and the web, so I do not know all the right vocabulary. Sorry. I need my ModelForm to be displayed, for creation of a new record, with a date field and a foreign key (pointing to the Source table) selector list aleady populated. I am doing this: form = ListingFor