]> git.ozlabs.org Git - patchwork/commit
[views] Check count() for duplicate bundle patches, rather than try/except
authorJeremy Kerr <jk@ozlabs.org>
Fri, 13 Feb 2009 02:52:19 +0000 (13:52 +1100)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 13 Feb 2009 02:52:19 +0000 (13:52 +1100)
commite21dfae1526814152603122f2ac4c9d36a7d814d
tree15bc86e374921c4982c419548c165348e28f9702
parenteddb3ce9c1659226d05ca1b959d0c31cd216f93a
[views] Check count() for duplicate bundle patches, rather than try/except

If the exception is raised, the transaction will still be in a bad
state, due to the foreign key constraint.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/tests/bundles.py
apps/patchwork/utils.py