]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Explicitly define fields
authorStephen Finucane <stephen@that.guru>
Wed, 23 Nov 2016 19:41:12 +0000 (19:41 +0000)
committerStephen Finucane <stephen@that.guru>
Fri, 23 Dec 2016 23:37:51 +0000 (23:37 +0000)
commit207bc10f74034509f0c17fad1dfc8713e73a5a3e
tree341a86cff6a46e50c4aaa7d485830e32bb44c3af
parentc3df793243b3f911e5d0d6b9c55acaf79a9fe918
REST: Explicitly define fields

Explicitly define included fields (using 'Meta.fields') rather than
those that should be excluded (using 'Meta.exclude'). This ensure fields
that are exposed by the API don't change unless we explicitly change
them

The only side-effect of this change should be a consistent ordering of
the output - the ordering used in the 'Meta.fields' will be consistently
used, thus ordering is now important and some fields are moved around
to reflect this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/api/check.py
patchwork/api/patch.py
patchwork/api/person.py
patchwork/api/project.py
patchwork/api/user.py