Could do `McctStatus.objects.filter(domain=domain, status=status).values_list('form_id', flat=True)` to avoid having to loop.

Also, should 'form_id' be marked as unique in the model?