Re: Populating foreign key fields when displaying forms that extend ModelForm

2009-03-01 Thread rajeesh
> On Sun, 2009-03-01 at 06:36 +0200, Ionut Gabriel Stan wrote: > > When rendered, the > > form includes a SELECT widget for selecting the blog post to which the > > comment > > belongs, but the post is already known. So how do I specify the post > > id so that > > the form renders a hidden field w

Re: Populating foreign key fields when displaying forms that extend ModelForm

2009-02-28 Thread Malcolm Tredinnick
On Sun, 2009-03-01 at 06:36 +0200, Ionut Gabriel Stan wrote: > Hi, > > I've decided to play a little more seriously with Django and as many > other people I > begun creating a simple blog application. I've encountered some issues > when > displaying the comments form, where users are able to add

Populating foreign key fields when displaying forms that extend ModelForm

2009-02-28 Thread Ionut Gabriel Stan
Hi, I've decided to play a little more seriously with Django and as many other people I begun creating a simple blog application. I've encountered some issues when displaying the comments form, where users are able to add comments to a blog post. I'm creating the form by extending django.forms.