]> git.ipfire.org Git - thirdparty/patchwork.git/commit
api: change <pk> parameter to <patch_id> for comments endpoint
authorRaxel Gutierrez <raxel@google.com>
Fri, 13 Aug 2021 05:31:18 +0000 (05:31 +0000)
committerStephen Finucane <stephen@that.guru>
Fri, 13 Aug 2021 09:25:34 +0000 (10:25 +0100)
commit26d4a68789e4cbda8431274f50311f48a0bffc99
treef79a5aee9b7df3e7635019c620b25e8e2dff874c
parent3a979ed8bfc69aecb38e3a8280e87996c5384482
api: change <pk> parameter to <patch_id> for comments endpoint

Refactor patch lookup parameter `pk` to `patch_id` for the comments list
endpoint to disambiguate from the lookup parameter `comment_id` in an
upcoming patch which introduces the comments detail endpoint. This
doesn't affect the user-facing API.

Signed-off-by: Raxel Gutierrez <raxel@google.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/api/comment.py
patchwork/api/patch.py
patchwork/tests/api/test_comment.py
patchwork/urls.py