]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Explicitly distinguish between comments on patch and cover
authorVeronika Kabatova <vkabatov@redhat.com>
Thu, 3 May 2018 10:55:16 +0000 (12:55 +0200)
committerStephen Finucane <stephen@that.guru>
Thu, 3 May 2018 14:23:49 +0000 (15:23 +0100)
commit8d6cc05082cf8fee84932e1e683382824e9b1c28
tree8eea5e4e7f8dca3e19fceb42aa1d407a7cb7dc39
parentd2eb1f6d20835713c9560bd55abf6d6da0b91ce2
Explicitly distinguish between comments on patch and cover

reverse() gets confused when the same view name and kwargs are passed to
it, ignoring what endpoint the request originated from. Fix this by
using different view names for cover letter and patch comments views.

Reported-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Veronika Kabatova <vkabatov@redhat.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/api/cover.py
patchwork/api/patch.py
patchwork/tests/api/test_comment.py
patchwork/urls.py