In [15]:
appt = Appointment.objects.all()[0]
metrics = OrganizationMetrics.objects.filter(organization=appt.organization).values_list('metric__system_name', flat=True)
'helmet' in metrics


Out[15]:
True

In [ ]: