ohcnetwork/care

AttributeError: 'NoneType' object has no attribute 'user_type'

Closed this issue · 0 comments

Sentry Issue: CARE-F9Z

AttributeError: 'NoneType' object has no attribute 'user_type'
(9 additional frame(s) were not displayed)
...
  File "care/facility/api/viewsets/patient_consultation.py", line 115, in create
    return super().create(request, *args, **kwargs)
  File "care/facility/api/serializers/patient_consultation.py", line 629, in validate
    not validated["treating_physician"].user_type