Re: How do I specify default value for a form field while using manipulator

2005-11-22 Thread Cheng Zhang
Thanks. Guess I should get the habit of searching wiki, esp. the cookbook. On Nov 22, 2005, at 9:21 PM, Grigory Fateyev wrote: http://code.djangoproject.com/wiki/CookBookManipulators there are two ways to do this stuff.

Re: How do I specify default value for a form field while using manipulator

2005-11-22 Thread Grigory Fateyev
Hello Cheng Zhang! On Tue, 22 Nov 2005 19:36:52 +0800 you wrote: > To add a new poll, when I login as a user, say 'test1', I want the > 'submitted_user' form field (render as a pulldown list) to be > selected as 'test1' automatically. It would be better if this field > is disabled or hidden

How do I specify default value for a form field while using manipulator

2005-11-22 Thread Cheng Zhang
How do I specify default value for a form field, which maps to a foreign key as Poll.submitted_user shown below, with manipulator, in particular AddManipulator? I couldn't find relevant information from the django-users archive, at least searching with keywords: manipulator, default didn'