]> 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:30:39 +0000 (12:30 +0100)
commit55aa9cd749f3ff0de430c8f04c687d691c3a703a
tree8ed3d53f91f5c6802003e23dc9d8ed5144dba665
parent947c6aae94b7b554ca701c1d7e5baf000759ed2d
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>
patchwork/parser.py
patchwork/tests/test_parser.py