Added support to fetch latest object from mongoengine queryset#2757
Added support to fetch latest object from mongoengine queryset#2757ArpitSachan wants to merge 1 commit intoMongoEngine:masterfrom
Conversation
|
How come you are approving your own PRs? |
|
I'm not sure that it will work good in case of sort that already created on the queryset |
|
I'm not sure about the use case for such method but given that it's present in django, it's something that I'm ok to consider. That being said, I see multiple issues with this proposal
Fixing 2 can be easily done in this PR but if we want to tackle 1) correctly, we would have to add the same default ordering on What would be acceptable (and less disruptive) to do is the following:
|
|
@bagerard Thanks for suggestions. Have handled the comments. |
Update tests Handle comment to address the incosistent behaviour
a75ac3f to
c9fd9ff
Compare
Solving: #2756