Re: Where's the form value set for comments framework/app

2010-11-30 Thread photon
I looked into the code again and think I've found where the values come from. class CommentFormNode(BaseCommentNode): """Insert a form for the comment model into the context.""" ... return comments.get_form() (ctype.get_object_for_this_type(pk=object_pk)) The comments.get_form() w

Re: Where's the form value set for comments framework/app

2010-11-30 Thread Daniel Roseman
On Nov 30, 8:31 am, photon wrote: > Mostly I followed the instruction > ofhttp://docs.djangoproject.com/en/dev/ref/contrib/comments/ > > While my code could run as expected, I cannot find when and where the > field values in "form" are set before it's called in line 4~6 of the > form.html as belo

Where's the form value set for comments framework/app

2010-11-30 Thread photon
Mostly I followed the instruction of http://docs.djangoproject.com/en/dev/ref/contrib/comments/ While my code could run as expected, I cannot find when and where the field values in "form" are set before it's called in line 4~6 of the form.html as below. What I'm particularly interested in was th