Code

Opened 5 years ago

Closed 4 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:

Description

Attached patch adds a new ./manage.py 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@… 5 years ago.
Patch that adds ./manage.py query
django-admin-query.diff (8.2 KB) - added by seveas 5 years ago.
Improved patch, with documentation

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by dennis@…

Patch that adds ./manage.py query

comment:1 Changed 5 years ago by anonymous

  • Component changed from Uncategorized to django-admin.py
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by anonymous

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

comment:3 Changed 5 years ago by seveas

  • Owner changed from nobody to seveas

Changed 5 years ago by seveas

Improved patch, with documentation

comment:4 Changed 5 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 4 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.

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.