Re: newforms - handling foreignkeys

2007-01-10 Thread Honza Král
Hi Philipp, On 1/10/07, Philipp Keller <[EMAIL PROTECTED]> wrote: > > Hi there > > There's a problem with newforms with foreignkey/choicefield. > > In the following example, category is a ForeignKey field: > > >>> EntryForm = forms.models.form_for_model(Entry) > >>> print EntryForm.fields.keys() >

newforms - handling foreignkeys

2007-01-10 Thread Philipp Keller
Hi there There's a problem with newforms with foreignkey/choicefield. In the following example, category is a ForeignKey field: >>> EntryForm = forms.models.form_for_model(Entry) >>> print EntryForm.fields.keys() ['title', 'body', 'category'] >>> data = dict(title="lorem", body="lorem ipsum dol