Opened 15 years ago
Closed 15 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: | no | UI/UX: | no |
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 ?
Note:
See TracTickets
for help on using tickets.
Trac is not for asking support questions. Please use either the django-users mailing list or the #django IRC channel for asking support questions.