I'm attempting to edit an existing comment (i.e. replace old comment with a new one). My comments app is django.contrib.comments.
new_comment = form.cleaned_data['comment']
#all of the comments for this particular review
comments = Comment.objects.for_model(Review).filter(object_pk=review_id)
print comments[0].comment
#'old comment'
comments[0].comment = new_comment
print comments[0].comment
#'old comment' is still printed
Why is the comment not being updated with the new comment ?
Thank you.
Edit:
Calling comments[0].save()
and then print comments[0].comment
, still prints 'old comment'