]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Specify default ordering fields
authorStephen Finucane <stephen@that.guru>
Fri, 20 Oct 2017 05:36:53 +0000 (16:36 +1100)
committerDaniel Axtens <dja@axtens.net>
Sat, 28 Oct 2017 01:39:17 +0000 (12:39 +1100)
commitd65e805be6d99a72df92550ad38a2d1b2005724f
treec09343577d629838a836d0c9249e816548a9a8ed
parent9527ae40ef9ce1867524ec9eda0c40b1c6c493a9
REST: Specify default ordering fields

This hides warnings likes the following:

    UnorderedObjectListWarning: Pagination may yield inconsistent
    results with an unordered object_list: <QuerySet [<User:
    test_user_0>]>

Signed-off-by: Stephen Finucane <stephen@that.guru>
[dja: fix merge conflict in patch.py]
Signed-off-by: Daniel Axtens <dja@axtens.net>
Acked-by: Stephen Finucane <stephen@that.guru>
patchwork/api/bundle.py
patchwork/api/check.py
patchwork/api/cover.py
patchwork/api/event.py
patchwork/api/patch.py
patchwork/api/person.py
patchwork/api/project.py
patchwork/api/series.py
patchwork/api/user.py