]> git.ozlabs.org Git - patchwork/commit
views: use id__in = get_patch_ids() to get the modified patch set
authorJeremy Kerr <jk@ozlabs.org>
Wed, 9 Mar 2011 05:20:10 +0000 (13:20 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 9 Mar 2011 05:20:10 +0000 (13:20 +0800)
commit25f3514a617e91dae3d255b3685f3a1f9799727b
treeee8c4071771fecaf75a63c1bd6884304ce8dbdb5
parent8639b526494afbe41d27c60e69ce26513c7d3c37
views: use id__in = get_patch_ids() to get the modified patch set

Currently, we generic_list processes patches in order of the patch_id:X
parameter, which is arbitrarily decided by the browser.

By using id__in, we get patches sorted by the default Patch model
ordering. This means that the (arbitrary) order of get_patch_ids()
doesn't affect the ordering of patches that we process, and bundles
are created with a reasonable default patch order.

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