Opened 10 years ago
Last modified 10 years ago
#24320 closed Bug
Unable to serialize UUIDField when running dumpdata with JSON format — at Version 1
Reported by: | James Beith | Owned by: | nobody |
---|---|---|---|
Component: | Core (Serialization) | Version: | 1.8alpha1 |
Severity: | Release blocker | Keywords: | |
Cc: | me@… | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
A model using a UUIDField as its primary key. Running dumpdata
management command with JSON output format (the default option) resulted in the following error
CommandError: Unable to serialize database: UUID('435697b4-954a-4b9a-a83a-2b53016b0d43') is not JSON serializable
However running again with --format=xml
did not result in an error and dumpdata
was successful.
Change History (1)
comment:1 by , 10 years ago
Description: | modified (diff) |
---|---|
Summary: | Unable to serialize UUID field when running dumpdata with JSON format → Unable to serialize UUIDField when running dumpdata with JSON format |
Note:
See TracTickets
for help on using tickets.