Sometimes we want to query by custom filter and different orders

And in this case will raise AttributeError because Queryset object can not call Manager method

Solution: as_manager()

More Django settings from document:

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。