diff options
| author | Hailiang <1181554113@qq.com> | 2021-12-26 09:48:02 +0800 |
|---|---|---|
| committer | John Villalovos <john@sodarock.com> | 2021-12-25 19:07:59 -0800 |
| commit | ee66f4a777490a47ad915a3014729a9720bf909b (patch) | |
| tree | e1d9506a203358b4dd2b4b6b603a1760612d8a43 | |
| parent | 3cb235277716d8b20c91e2518675b7eed2d0e777 (diff) | |
| download | gitlab-ee66f4a777490a47ad915a3014729a9720bf909b.tar.gz | |
docs: correct documentation for updating discussion note
Closes #1777
| -rw-r--r-- | docs/gl_objects/discussions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/gl_objects/discussions.rst b/docs/gl_objects/discussions.rst index 444d883..2ee836f 100644 --- a/docs/gl_objects/discussions.rst +++ b/docs/gl_objects/discussions.rst @@ -70,7 +70,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources:: discussion = resource.discussions.get(discussion_id) # Get the latest note's id - note_id = discussion.attributes['note'][-1]['id'] + note_id = discussion.attributes['notes'][-1]['id'] last_note = discussion.notes.get(note_id) last_note.body = 'Updated comment' last_note.save() |
