Changes between Initial Version and Version 1 of Ticket #34130


Ignore:
Timestamp:
Nov 1, 2022, 6:03:44 AM (2 years ago)
Author:
Michal Dabski
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34130 – Description

    initial v1  
    2222{{{
    2323# Queryset is ordered by default field as expected ✔
    24 str(Dashboard.objects.all().values('name').ordered)
    25 Out[44]: 'True'
     24Dashboard.objects.all().values('name').ordered
     25Out[44]: True
    2626
    2727# Queryset is not ordered after adding order_by() as expected ✔
    28 str(Dashboard.objects.all().order_by().ordered)
    29 Out[54]: 'False'
     28Dashboard.objects.all().order_by().ordered
     29Out[54]: False
    3030
    3131# 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'
     32Dashboard.objects.all().order_by().values('name').ordered
     33Out[42]: True
    3434
    3535# placing order_by() after values() works as expected ✔
    36 str(Dashboard.objects.all().values('name').order_by().ordered)
    37 Out[48]: 'False'
     36Dashboard.objects.all().values('name').order_by().ordered
     37Out[48]: False
    3838
    3939}}}
Back to Top