Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#146 closed defect (fixed)

Change order_by and ordering parameters to be less verbose

Reported by: Adrian Holovaty Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Status: newassigned

comment:2 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: assignedclosed

(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.

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