Opened 5 years ago

Closed 5 years ago

#12305 closed (invalid)

order_by problem

Reported by: mhangman Owned by: nobody
Component: Database layer (models, ORM) Version: 1.1
Severity: Keywords: order_by
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

list = pnews.objects.filter(status=True).order_by('-pdate')
well this is my list. im trying to order_by with "-pdate". For different days it works well but when it try to list objects at same day order_by not working with "-pdate". Its working with +pdate. i tried to look on django source but cant find something about this. is it something like (-pdate[-pdate]) this ?

Change History (1)

comment:1 Changed 5 years ago by Alex

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Trac is not for asking support questions. Please use either the django-users mailing list or the #django IRC channel for asking support questions.

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