Re: Django form show initial prepopulate on edit

2010-10-27 Thread Hudar
Hi, Yes, because i use appengine, so django model not supported. Btw i fixed the problem , by using {{ postForm.category }} instead, and put the css class by define category = forms.CharField(widget = forms.TextInput(attrs={'class':'somecssclass'}) instead of wrote it in html. Thanks. On Oct

Django form show initial prepopulate on edit

2010-10-27 Thread Hudar
Hi, Just wondering, how we could show initial value on the edit form. Let say we have code like this to retrive the data ; if request.method == 'GET': post = models.Post.get_by_key_name(key_name) editPostForm = postform.PostForm(initial={ 'title': post.title,