equal
deleted
inserted
replaced
181 ret = {} |
181 ret = {} |
182 if errors != {} : |
182 if errors != {} : |
183 ret['errors'] = errors |
183 ret['errors'] = errors |
184 else : |
184 else : |
185 # INSERT |
185 # INSERT |
186 # TODO check version still exist ... |
186 # TODO check version is latest (if boolean |
187 #comment = Comment.objects.get(id=edit_comment_id) |
187 #comment = Comment.objects.get(id=edit_comment_id) |
188 comment = Comment.objects.get(key=comment_key) |
188 comment = Comment.objects.get(key=comment_key) |
189 if change_state : # moderation action |
189 if change_state : # moderation action |
190 comment.state = state |
190 comment.state = state |
191 else : |
191 else : |