fix bug with inventory update queryset

This commit is contained in:
AlanCoding 2017-11-28 14:13:35 -05:00
parent ce6d96feda
commit a880f47925
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -883,7 +883,7 @@ class InventoryUpdateAccess(BaseAccess):
prefetch_related = ('unified_job_template', 'instance_group',)
def filtered_queryset(self):
return qs.filter(inventory_source__inventory__in=Inventory.accessible_pk_qs(self.user, 'read_role'))
return self.model.objects.filter(inventory_source__inventory__in=Inventory.accessible_pk_qs(self.user, 'read_role'))
def can_cancel(self, obj):
if not obj.can_cancel: