#23571: Empty order_by() doesn't work with slice ----------------------------------------------+---------------------------- Reporter: liminspace | Owner: liminspace Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.7 Severity: Normal | Keywords: order_by, Triage Stage: Unreviewed | slice Easy pickings: 0 | Has patch: 0 | UI/UX: 0 ----------------------------------------------+---------------------------- MyModel.objects.order_by() - use SQL without ORDER BY. MyModel.objects.order_by()[:10] - use SQL with ORDER BY (default fields for model ordering).
This is a bug or a feature? :) -- Ticket URL: <https://code.djangoproject.com/ticket/23571> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/053.feca9e16ac2dc49eab8a0ff17cdefee9%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.