You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the slice syntax, I get different behaviour from using .skip().limit()
>>> User.objects[1:2]
[<User: 23D2F2DonYwmrjxj7dyVgQ: william cooper>]
>>> User.objects.skip(1).limit(2)
[<User: 23D2F2DonYwmrjxj7dyVgQ: william cooper>, <User: 23D7WmipqKWSsshVVTq7iT: Emma >]
The expected behaviour of the second number in the slice index, eg. [m:n] is to return that number (eg. n) of records, after skipping m items, like the result of the combination of .skip().limit()
The text was updated successfully, but these errors were encountered:
Using the slice syntax, I get different behaviour from using .skip().limit()
The expected behaviour of the second number in the slice index, eg. [m:n] is to return that number (eg. n) of records, after skipping m items, like the result of the combination of .skip().limit()
The text was updated successfully, but these errors were encountered: