create comment programmatically from CommentForm embedded in another form

2015-05-07 Thread Martin Beroiz
Hello, I'm rather new to Django and I'm trying to include django_comments form in another form a user can choose. Basically, the user will fill a custom form (of mine) and possibly leave a comment with a form generated with django_comments. In a nutshell, I want to save a comment programmatic

Re: create comment programmatically from CommentForm embedded in another form

2015-05-07 Thread Martin Beroiz
I just found out the CommentForm actually requires to set target_object for initialization. It should've been commForm = CommentForm(target_object = myobj, data=request.POST) Sorry for the noise on the list! On Thursday, 7 May 2015 18:05:09 UTC-5, Martin Beroiz wrote: > > Hell