Changes between Initial Version and Version 1 of Ticket #34130
- Timestamp:
- Nov 1, 2022, 6:03:44 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34130 – Description
initial v1 22 22 {{{ 23 23 # Queryset is ordered by default field as expected ✔ 24 str(Dashboard.objects.all().values('name').ordered) 25 Out[44]: 'True'24 Dashboard.objects.all().values('name').ordered 25 Out[44]: True 26 26 27 27 # Queryset is not ordered after adding order_by() as expected ✔ 28 str(Dashboard.objects.all().order_by().ordered) 29 Out[54]: 'False'28 Dashboard.objects.all().order_by().ordered 29 Out[54]: False 30 30 31 31 # adding values() call somehow restores default ordering. Expected behaviour is for QS to remain unordered ✖ 32 str(Dashboard.objects.all().order_by().values('name').ordered) 33 Out[42]: 'True'32 Dashboard.objects.all().order_by().values('name').ordered 33 Out[42]: True 34 34 35 35 # placing order_by() after values() works as expected ✔ 36 str(Dashboard.objects.all().values('name').order_by().ordered) 37 Out[48]: 'False'36 Dashboard.objects.all().values('name').order_by().ordered 37 Out[48]: False 38 38 39 39 }}}