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

TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType' #1480

Closed
sentry-io bot opened this issue Jul 27, 2023 · 0 comments · Fixed by #1475
Closed

TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType' #1480

sentry-io bot opened this issue Jul 27, 2023 · 0 comments · Fixed by #1475
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Jul 27, 2023

Sentry Issue: CARE-QV

TypeError: '<' not supported between instances of 'datetime.datetime' and 'NoneType'
(8 additional frame(s) were not displayed)
...
  File "care/facility/api/viewsets/patient_consultation.py", line 102, in discharge_patient
    serializer.is_valid(raise_exception=True)
  File "care/facility/api/serializers/patient_consultation.py", line 457, in validate
    elif attrs.get("discharge_date") < self.instance.admission_date:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant