#18165: Ordering by related field creates duplicates in resultant querysets -------------------------------------+------------------------------------- Reporter: dokterbob | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.4 (models, ORM) | Resolution: wontfix Severity: Normal | Triage Stage: Keywords: ordering, | Unreviewed duplicates, related | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+------------------------------------- Changes (by akaariai):
* status: reopened => closed * resolution: => wontfix Comment: The problem is that this is mostly unsolvable. If you have objects TM1 and TM2, where TM1 has related model with field values 1 and 3, and TM2 has related model with field value 2, then what is the correct sort order assuming you can return just one TM1 and one TM2 object? This is already documented: https://docs.djangoproject.com/en/dev/ref/models/querysets/#order-by I am reclosing this as wontfix. If you want to further discuss this then django-users (or django-developers) mailing list is the right forum. -- Ticket URL: <https://code.djangoproject.com/ticket/18165#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.