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
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
2 matches
Mail list logo