for child in parent.child_set.filter(
model__type__in=[DeviceType.management.id,
DeviceType.unknown.id],
 ):