Code

Opened 6 years ago

Closed 2 years ago

#8429 closed New feature (duplicate)

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

Reported by: erikcw Owned by: nobody
Component: Core (Management commands) Version: master
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....

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by mtredinnick

  • milestone changed from 1.0 maybe to post-1.0
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 6 years ago by adrian

  • Component changed from Tools to django-admin.py

comment:3 Changed 5 years ago by anonymous

  • milestone post-1.0 deleted

Milestone post-1.0 deleted

comment:4 Changed 3 years ago by lukeplant

  • Severity set to Normal
  • Type set to New feature

comment:5 Changed 2 years ago by aaugustin

  • Easy pickings unset
  • Triage Stage changed from Design decision needed to Accepted
  • UI/UX unset

comment:6 Changed 2 years ago by aaugustin

  • Resolution set to duplicate
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.