[google-appengine] Pass initial parameters to form

2008-09-26 Thread Tiranox
Hello All! I try pass initial parameters to form, with choise. But it's not work. class PhoneNumber(db.Model): number = db.StringProperty() phone_type = db.StringProperty( choices=('work', 'cell')) class PhoneNumberForm(djangoforms.ModelForm): class Meta: model = PhoneNu

[google-appengine] Re: How to pass additionap parameters to Form

2008-09-26 Thread Tiranox
can i pass any parameters with initial value ? form = PhoneNumberForm(initial={'number':'12334'}) how i can access to initial var ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To pos

[google-appengine] How to pass additionap parameters to Form

2008-09-25 Thread Tiranox
How to pass additionap parameters to Form For example: class PhoneNumber(db.Model): number = db.StringProperty() phone_type = db.StringProperty( choices=('work', 'cell')) class PhoneNumberForm(djangoforms.ModelForm): v class Meta: model = PhoneNumber def newp(reques