Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute '_meta' #2347

Closed
sentry-io bot opened this issue Aug 8, 2024 · 0 comments · Fixed by #2348
Closed

AttributeError: 'NoneType' object has no attribute '_meta' #2347

sentry-io bot opened this issue Aug 8, 2024 · 0 comments · Fixed by #2348
Assignees
Labels
bug Something isn't working P0 Urgent

Comments

@sentry-io
Copy link

sentry-io bot commented Aug 8, 2024

Sentry Issue: CARE-F99

AttributeError: 'NoneType' object has no attribute '_meta'
(12 additional frame(s) were not displayed)
...
  File "care/facility/api/serializers/patient_consultation.py", line 479, in create
    create_consultation_events(
  File "care/facility/events/handler.py", line 100, in create_consultation_events
    create_consultation_event_entry(
  File "care/facility/events/handler.py", line 42, in create_consultation_event_entry
    value[field] = serialize_field(object_instance, field)
  File "care/utils/event_utils.py", line 34, in serialize_field
    return serialize_field(related_object, sub_field)
  File "care/utils/event_utils.py", line 38, in serialize_field
    field = object._meta.get_field(field_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant