Skip to content

Commit

Permalink
Add name_in_list filter to publisher endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Apr 10, 2018
1 parent 6e0c691 commit a8c3176
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pulpcore/pulpcore/app/viewsets/repository.py
Expand Up @@ -106,9 +106,11 @@ class PublisherFilter(filterset.FilterSet):
- to specify a plugin publisher model for which filter is defined
- to extend `fields` with specific ones
"""
name_in_list = CharInFilter(name='name', lookup_expr='in')

class Meta:
model = Publisher
fields = ['name', 'last_updated']
fields = ['name', 'last_updated', 'name_in_list']


class ExporterFilter(filterset.FilterSet):
Expand Down

0 comments on commit a8c3176

Please sign in to comment.