Verified Commit 13e7d996 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix apply bulk field for lookup API.

parent a3401c5a
Pipeline #32767 passed with stages
in 16 minutes and 45 seconds
......@@ -170,7 +170,9 @@ class ManagedObjectApplication(ExtModelApplication):
:param data:
:return:
"""
mo_ids = [x["id"] for x in data]
# IsManaged check if lookup field. Possibly extract if for id
# Or Disable Bulk for lookup
mo_ids = [x["id"] for x in data if x.get("is_managed") is not None]
if not mo_ids:
return data
alarms = list(ActiveAlarm.objects.filter(managed_object=mo_ids))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment