mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 04:31:21 -03:30
move get_queryset handling to child view
This commit is contained in:
parent
2131703ca0
commit
31fe500921
@ -4028,8 +4028,6 @@ class BaseAdHocCommandEventsList(NoTruncateMixin, SubListAPIView):
|
||||
def get_queryset(self):
|
||||
parent = self.get_parent_object()
|
||||
self.check_parent_access(parent)
|
||||
if isinstance(parent, models.Host):
|
||||
return super(BaseAdHocCommandEventsList, self).get_queryset()
|
||||
return parent.get_event_queryset()
|
||||
|
||||
|
||||
@ -4037,6 +4035,9 @@ class HostAdHocCommandEventsList(BaseAdHocCommandEventsList):
|
||||
|
||||
parent_model = models.Host
|
||||
|
||||
def get_queryset(self):
|
||||
return super(BaseAdHocCommandEventsList, self).get_queryset()
|
||||
|
||||
|
||||
# class GroupJobEventsList(BaseJobEventsList):
|
||||
# parent_model = Group
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user