mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 01:34:45 -03:30
Merge pull request #6251 from chrismeyersfsu/fix-6235
boolean logic performed on filter results
This commit is contained in:
@@ -1924,8 +1924,8 @@ class HostList(ListCreateAPIView):
|
||||
qs = super(HostList, self).get_queryset()
|
||||
filter_string = self.request.query_params.get('host_filter', None)
|
||||
if filter_string:
|
||||
filter_q = DynamicFilter.query_from_string(filter_string)
|
||||
qs = qs.filter(filter_q)
|
||||
filter_qs = DynamicFilter.query_from_string(filter_string)
|
||||
qs &= filter_qs
|
||||
return qs
|
||||
|
||||
def list(self, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user