How do i assign initial values to fields inside a ModelForm. eg.
class Form1(forms.Form):
title=forms.CharField(initial="hello")
what will be the equivalent for this using modelForm whose basic syntax is something like:
class Form2(djangoforms.ModelForm)
class Meta:
model=SomeModel
fields=('title')
What I am trying to do is generate a CRUD. Since i am doing it in an appengine project i can't use generic views. Apeengine has provided us djangoforms.ModelForm which works just like the django's modelForm but uses appengine's datastore
I need the above functionality to do the "edit" part.
thanks