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
class BlogPost(Document):
title = StringField()
date = DateTimeField()
@queryset_manager
def live_posts(doc_cls, queryset):
# This may actually also be done by defining a default ordering for
# the document, but this illustrates the use of manager methods
return queryset.order_by('-date')
I had a class:
now ,give the follow tests:
Well,it's ok.but If I execute it like this:
the result is not my want.
The same problem occurs in the mumblr,before template render the entry's ordery is ok,but after the template rended it's wrong.
The text was updated successfully, but these errors were encountered: