2👍
✅
You should replace it like;
def get_queryset(self):
return ServiceProvider.objects.filter(service_type=self.args[0])
get()
will return only one object, here in your model there will be multiple ServiceProvider objects with same service_type.
Source:stackexchange.com