mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 11:20:39 -03:30
Merge pull request #730 from AlanCoding/list_bug
fix bug with inventory update queryset
This commit is contained in:
commit
8f5be46d52
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user