Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#146 closed defect (fixed)

Change order_by and ordering parameters to be less verbose

Reported by: adrian Owned by: adrian
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: UI/UX:

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 Changed 10 years ago by adrian

  • Status changed from new to assigned

comment:2 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from assigned to closed

(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