After upgrade to 3.17.0 the null datetime values are not rendered and a ValueError is raised #9925
Replies: 1 comment
-
|
Created #9927 Let's keep the discussion there |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem is with this line:
datetime.datetime.fromisoformat(field_value) if format_ == ISO_8601Line Link
in rest_framework\renderers.py.
If the field_value is an empty string '', a ValueError is raised.
Before 3.17.0 the empty date strings were supported.
I don't know if this is an issue or the null values are not handled properly.
Beta Was this translation helpful? Give feedback.
All reactions