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
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
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