]> git.ozlabs.org Git - patchwork/commit
views/order: Apply default ordering as secondary
authorJeremy Kerr <jk@ozlabs.org>
Wed, 12 Mar 2014 00:44:12 +0000 (08:44 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 21 Apr 2014 02:39:12 +0000 (10:39 +0800)
commitf24310486bb97291350fa84f1e895635facb4155
tree02701b328d468ff795b4ccc60adbdf3be6d8a3ac
parent26d551a1ee9e888c1656730c19414003124a4ec7
views/order: Apply default ordering as secondary

If we're ordering by a certain non-default field, then the ordering
of patches with that same field will be arbitrary.

This change applies the default as a secondary ordering, so we're not
left with an arbitrary sub-order.

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