Opened 6 years ago

Closed 5 years ago

#11005 closed (wontfix)

./manage query -- query the django orm from the command line

Reported by: dennis@… Owned by: seveas
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: UI/UX:


Attached patch adds a new ./ command to query the django ORM from the command line. Output is either comma-separated or done with a template, documentation included in the patch.

Attachments (2)

query.patch (4.6 KB) - added by dennis@… 6 years ago.
Patch that adds ./ query
django-admin-query.diff (8.2 KB) - added by seveas 6 years ago.
Improved patch, with documentation

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by dennis@…

Patch that adds ./ query

comment:1 Changed 6 years ago by anonymous

  • Component changed from Uncategorized to
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 6 years ago by anonymous

  • Needs documentation set
  • Needs tests set
  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 6 years ago by seveas

  • Owner changed from nobody to seveas

Changed 6 years ago by seveas

Improved patch, with documentation

comment:4 Changed 6 years ago by seveas

  • Needs documentation unset

New patch attched, includes documentation. Not sure how to test this functionality, hints are appreciated.

comment:5 Changed 5 years ago by mtredinnick

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

This isn't a common enough use-case to require adding code (and maintenance) to Django. It's easy to do this type of thing from the management shell. It's also easy to write custom management commands if a project or app wanted such functionality. Won't-fixing.

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