Opened 16 years ago

Closed 13 years ago

#8429 closed New feature (duplicate)

Option to restrict django-admin.py --dumpdata to a subset of records.

Reported by: ErikW Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords: django-admin.py, dumpdata
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'd like to suggest being able to limit the output of django-admin.py --dumpdata to a "slice" of records. For example ./manage.py --dumpdata app [10:100]

This would be super handy for exporting test-data from large data-sets for unit testing....

Change History (6)

comment:1 by Malcolm Tredinnick, 16 years ago

milestone: 1.0 maybepost-1.0
Triage Stage: UnreviewedDesign decision needed

comment:2 by Adrian Holovaty, 16 years ago

Component: Toolsdjango-admin.py

comment:3 by (none), 16 years ago

milestone: post-1.0

Milestone post-1.0 deleted

comment:4 by Luke Plant, 14 years ago

Severity: Normal
Type: New feature

comment:5 by Aymeric Augustin, 13 years ago

Easy pickings: unset
Triage Stage: Design decision neededAccepted
UI/UX: unset

comment:6 by Aymeric Augustin, 13 years ago

Resolution: duplicate
Status: newclosed

Closing in favor of #16330 which is exactly the same feature request and has a patch.

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