old_contents: from datetime import date
  from pttrack.models import Provider, Workup
  
  unsigned_workups = Workup.objects.filter(signer=None)
  
  print unsigned_workups
  
  for wu in unsigned_workups:
      d = wu.clinic_day.clinic_date
      providers = Provider.objects.filter(
          signed_workups__in=Workup.objects.filter(
              clinic_day__clinic_date=d)).distinct()
      print wu.patient, providers, d
  
  
new_contents: from datetime import date
  from pttrack.models import Provider
  from workup.models import Workup
  
  unsigned_workups = Workup.objects.filter(signer=None)
  
  print unsigned_workups
  
  for wu in unsigned_workups:
      d = wu.clinic_day.clinic_date
      providers = Provider.objects.filter(
          signed_workups__in=Workup.objects.filter(
              clinic_day__clinic_date=d)).distinct()
      print wu.patient, providers, d
  
subject: Update check_unsigned.py