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()
>
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