Re: Using a manipulator with ModelForms

2009-06-27 Thread paul_tanner
Sorry, after googling some more the glaringly simple solution revealed itself form=NoteForm(initial={'organisation': oid}) Shame I found that cookbook item in the first place - complete red herring. Paul On Jun 27, 11:03 am, paultanner wrote: > Whilst I appreciate that hidden fields can be le

Using a manipulator with ModelForms

2009-06-27 Thread paultanner
Whilst I appreciate that hidden fields can be less than ideal in some cases I want to set default values in a form generated from a model. http://code.djangoproject.com/wiki/CookBookManipulatorWithHiddenFields gives some guidance but this approach appears to be deprecated in django 1.02 (and the