Re: Change form - populating selected item from a ForeignKey field?

2008-07-16 Thread Rajesh Dhawan
On Jul 16, 10:52 am, mbdtsmh <[EMAIL PROTECTED]> wrote: > Thanks Rajesh - this works perfectly! > > I now have another question... > > What do I now do about manytomany fields for example look at the > contributor field in the example below - I want the current > contributors to be selected in

Re: Change form - populating selected item from a ForeignKey field?

2008-07-16 Thread mbdtsmh
Thanks Rajesh - this works perfectly! I now have another question... What do I now do about manytomany fields for example look at the contributor field in the example below - I want the current contributors to be selected in the change form (these can obviously be more than one) models.py:

Re: Change form - populating selected item from a ForeignKey field?

2008-07-14 Thread Rajesh Dhawan
Hi Martin, On Jul 14, 12:14 pm, mbdtsmh <[EMAIL PROTECTED]> wrote: > Hi everyone - wondering if someone could point me in the right > direction with this one? > > I am trying to populate fields in a form with data from the database > (i.e., a change form rather than an add new form). It works

Change form - populating selected item from a ForeignKey field?

2008-07-14 Thread mbdtsmh
Hi everyone - wondering if someone could point me in the right direction with this one? I am trying to populate fields in a form with data from the database (i.e., a change form rather than an add new form). It works fine for populating Char/Date Fields but when I do the same for ForeignKey or