diff options
author | Stephen Finucane <stephen@that.guru> | 2018-04-11 17:13:34 +0100 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2018-05-10 02:22:11 +1000 |
commit | 5c15947c434c5cf86769823e95926a6d340a082a (patch) | |
tree | b8b606e9ae33319b0613bc2fd23ffe03f9e5441d /releasenotes | |
parent | dc53930e8b55ff151bfc11a6e80a3d352ab7fb35 (diff) | |
download | patchwork-5c15947c434c5cf86769823e95926a6d340a082a.tar patchwork-5c15947c434c5cf86769823e95926a6d340a082a.tar.gz |
REST: Base filters on Django's ModelMultipleChoiceField
Introduce a modified version of Django's ModelMultipleChoiceField
that allows us to query on multiple fields.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: #156
[dja: commit message, expand docs]
Signed-off-by: Daniel Axtens <dja@axtens.net>
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/improved-rest-filtering-bf68399270a9b245.yaml | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/releasenotes/notes/improved-rest-filtering-bf68399270a9b245.yaml b/releasenotes/notes/improved-rest-filtering-bf68399270a9b245.yaml index b1d12eb..fcbd14f 100644 --- a/releasenotes/notes/improved-rest-filtering-bf68399270a9b245.yaml +++ b/releasenotes/notes/improved-rest-filtering-bf68399270a9b245.yaml @@ -8,9 +8,18 @@ api: $ curl /covers/?submitter=stephen@that.guru - | - Bundles can be filtered by owner and checks by user using username. For - example: + Bundles can be filtered by owner, patches by delegate and checks by user + using username. For example: .. code-block:: shell $ curl /bundles/?owner=stephenfin + - | + Filters can now be specified multiple times. For example: + + .. code-block:: shell + + $ curl /patches/?state=under-review&state=rfc + + This operates as a logical OR: it will retrieve patches that are either + Under Review or RFC. |