Remove event hosts relationship

and parent event-event ForeignKey relationship
This commit is contained in:
AlanCoding
2020-01-15 10:22:58 -05:00
parent f911fb2046
commit 9a420820eb
5 changed files with 30 additions and 22 deletions

View File

@@ -2238,7 +2238,7 @@ class JobEventAccess(BaseAccess):
'''
model = JobEvent
prefetch_related = ('hosts', 'job__job_template', 'host',)
prefetch_related = ('job__job_template', 'host',)
def filtered_queryset(self):
return self.model.objects.filter(