Merge pull request #730 from AlanCoding/list_bug

fix bug with inventory update queryset
This commit is contained in:
Alan Rominger 2017-11-28 18:41:39 -05:00 committed by GitHub
commit 8f5be46d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: