Open jacobjove opened 8 months ago
Django's dumpdata command results in PathField instances being serialized like this:
... "path": "[\"0E-10\"]", ...
Then, loaddata results in a deserialization error because the value is a string rather than an array.
Django's documentation for custom fields notes that the to_python method should gracefully handle values of type str as well as the expected type.
to_python
str
Closed by #14
Django's dumpdata command results in PathField instances being serialized like this:
Then, loaddata results in a deserialization error because the value is a string rather than an array.
Django's documentation for custom fields notes that the
to_python
method should gracefully handle values of typestr
as well as the expected type.Closed by #14