remove duplicate hosts from host_filter

This commit is contained in:
Chris Meyers 2017-07-19 13:32:26 -04:00
parent f31cec2848
commit 22e4957698

View File

@ -1917,7 +1917,7 @@ class HostList(ListCreateAPIView):
if filter_string:
filter_qs = SmartFilter.query_from_string(filter_string)
qs &= filter_qs
return qs
return qs.distinct()
def list(self, *args, **kwargs):
try: