diff options
author | Stephen Finucane <stephen@that.guru> | 2018-04-11 17:13:32 +0100 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2018-05-10 02:07:56 +1000 |
commit | 4d5fc2ff00c3113dca9c5c83ce6a155362369a87 (patch) | |
tree | b73de105fb6a2a1a99af7263feab381b93cda51a | |
parent | 559187e93f04d28298cfcccb5885b42a61a19310 (diff) | |
download | patchwork-4d5fc2ff00c3113dca9c5c83ce6a155362369a87.tar patchwork-4d5fc2ff00c3113dca9c5c83ce6a155362369a87.tar.gz |
REST: Use UserFilter for patch delegates
Signed-off-by: Stephen Finucane <stephen@that.guru>
Signed-off-by: Daniel Axtens <dja@axtens.net>
-rw-r--r-- | patchwork/api/filters.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/patchwork/api/filters.py b/patchwork/api/filters.py index eed7995..25956e9 100644 --- a/patchwork/api/filters.py +++ b/patchwork/api/filters.py @@ -158,8 +158,9 @@ class CoverLetterFilter(ProjectMixin, TimestampMixin, FilterSet): class PatchFilter(ProjectMixin, TimestampMixin, FilterSet): - state = StateFilter(queryset=State.objects.all()) submitter = PersonFilter(queryset=Person.objects.all()) + delegate = UserFilter(queryset=User.objects.all()) + state = StateFilter(queryset=State.objects.all()) class Meta: model = Patch |