Re: Populate Foreign Key after Form is Submitted

2010-06-14 Thread geraldcor
That was perfect. Thank you. I don't look at the admin docs enough I guess. The following worked: customers = forms.ModelChoiceField(queryset=Customers.objects.all(), widget=forms.TextInput) On Jun 14, 3:03 pm, Lee Hinde wrote: > On Mon, Jun 14, 2010 at 1:59 PM, geraldcor

Re: Populate Foreign Key after Form is Submitted

2010-06-14 Thread Lee Hinde
On Mon, Jun 14, 2010 at 1:59 PM, geraldcor wrote: > Hello all, > > I have a model A that has >4000 records in it. I have just created a > new model B that has a foreign key to A. I want to be able to create > an instance of B and save it which is no problem going the normal

Populate Foreign Key after Form is Submitted

2010-06-14 Thread geraldcor
Hello all, I have a model A that has >4000 records in it. I have just created a new model B that has a foreign key to A. I want to be able to create an instance of B and save it which is no problem going the normal routes. However, I like to use Ajax to make the load times faster because a lot of