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

As we've done for the Patch and Comment models, this change prevents
database errors from duplicate CoverLetters.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Stephen Finucane <stephen@that.guru>
[stephenfin: Add release note]
(cherry picked from commit 55fb26bf5bb3ca81ae35426efa9b2410e206c8b2)
patchwork/parser.py
patchwork/tests/test_parser.py
releasenotes/notes/issue-358-7d664318a19385fa.yaml [new file with mode: 0644]