Django

Code

Ticket #146 (closed: fixed)

Opened 3 years ago

Last modified 1 year ago

Change order_by and ordering parameters to be less verbose

Reported by: adrian Assigned to: adrian
Milestone: Component: Database layer (models, ORM)
Version: Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Instead of the following:

ordering = (('pub_date', 'ASC'), ('name', 'DESC'), (None, 'RANDOM'))

...we should use the following:

ordering = ('pub_date', '-name', '?')

See http://groups-beta.google.com/group/django-developers/browse_thread/thread/f4945bd967defde1/f5f3cb3312f77fe5

Attachments

Change History

07/21/05 22:37:50 changed by adrian

  • status changed from new to assigned.

07/22/05 08:02:30 changed by adrian

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [292]) Fixed #146 -- Changed order_by and ordering parameters to be less verbose. The old syntax is still supported but will not be supported by first release.


Add/Change #146 (Change order_by and ordering parameters to be less verbose)




Change Properties
Action