Opened 15 years ago

Closed 13 years ago

#11005 closed (wontfix)

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

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


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@… 15 years ago.
Patch that adds ./ query
django-admin-query.diff (8.2 KB) - added by Dennis Kaarsemaker 14 years ago.
Improved patch, with documentation

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by dennis@…

Attachment: query.patch added

Patch that adds ./ query

comment:1 Changed 15 years ago by anonymous


comment:2 Changed 15 years ago by anonymous

Needs documentation: set
Needs tests: set
Triage Stage: UnreviewedDesign decision needed

comment:3 Changed 14 years ago by Dennis Kaarsemaker

Owner: changed from nobody to Dennis Kaarsemaker

Changed 14 years ago by Dennis Kaarsemaker

Attachment: django-admin-query.diff added

Improved patch, with documentation

comment:4 Changed 14 years ago by Dennis Kaarsemaker

Needs documentation: unset

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

comment:5 Changed 13 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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