I've already read that and can't get the first one working:

instance = Instance(required_field='value')
form = InstanceForm(request.POST, instance=instance)
new_instance = form.save()

In my case, shouldn't it look like this:

user = request.user
discussion = Discussion.objects.get(pk=discussion_pk)
form = CommentForm(request.POST, user=user, discussion=discussion)
form = form.save()

Or am I wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to