Re: newforms: create form with preselected value

2008-01-22 Thread lowshoe
thanks, karen i didnt know the dynamic intial values yet. django surprises me over and over again :-) lowshoe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: newforms: create form with preselected value

2008-01-21 Thread Karen Tracey
On Jan 21, 2008 11:23 AM, lowshoe <[EMAIL PROTECTED]> wrote: > > hi, > > i'm currently trying to create a form with newforms from a model. now > i would like to create an add-form where a selection field shall have > a preselected value. i know that i can pass a data-dictionary when > instantiatin

newforms: create form with preselected value

2008-01-21 Thread lowshoe
hi, i'm currently trying to create a form with newforms from a model. now i would like to create an add-form where a selection field shall have a preselected value. i know that i can pass a data-dictionary when instantiating the form: FolderForm = forms.models.form_for_model(Folder) form = Fold