Opened 9 years ago

Closed 9 years ago

#25015 closed New feature (duplicate)

Set sort_keys=True for django.core.serializers.json

Reported by: Matt Johnson Owned by: nobody
Component: Core (Serialization) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The JSON serializer used for the dumpdata management command doesn't sort keys by default. This is a mild annoyance when you've changed data related to a fixture in the database directly, and you want to use dumpdata to add the change to version control. The diff between the two versions of the fixture will include tons of noise since the key order may have changed.

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #24558 which is fixed in master (1.9).

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