]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parser: don't trigger database IntegrityErrors on duplicate comments
authorJeremy Kerr <jk@ozlabs.org>
Thu, 16 Apr 2020 01:29:27 +0000 (09:29 +0800)
committerStephen Finucane <stephen@that.guru>
Sat, 18 Apr 2020 11:57:17 +0000 (12:57 +0100)
commit69cd420b4ec3c95a47bb80eed2415d8ba01d84fb
treedbc08ab50271a81b233e3b736c1e2eb875fdb6bb
parent91dce3e077ebdef833afd06a8407e1012929d929
parser: don't trigger database IntegrityErrors on duplicate comments

As we've done for the Patch model, this change prevents database errors
from duplicate Comments.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Stephen Finucane <stephen@that.guru>
(cherry picked from commit 55aa9cd749f3ff0de430c8f04c687d691c3a703a)
patchwork/parser.py
patchwork/tests/test_parser.py