newforms, form_for_model, and FilePathField

0 views
Skip to first unread message

James

unread,
May 4, 2007, 7:27:47 PM5/4/07
to Django users
Hi,

Quite new to both Django and python.

I'm trying to create a form using form_for_model with a model that has
a FilePathField as one of it's attributes. The documentation for
FilePathField states that the path parameter is the "absolute
filesystem path to a directory from which this FilePathField should
get its choices. "

My question is, given the implication of choices in the above, does
this mean that I should expect form_for_model to output that attribute
as a select tag? (It doesn't; it's just a plain text input.) Is that
how it worked with the old form framework? If yes, is that how it will
eventually work with newforms?

Thanks,

James

Reply all
Reply to author
Forward
0 new messages