Opened 10 years ago

Last modified 10 years ago

#24320 closed Bug

Unable to serialize UUID field when running dumpdata with JSON format — at Initial Version

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

A model with a UUID 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 (0)

Note: See TracTickets for help on using tickets.
Back to Top