阅读背景:

查询中的min函数设置Django以查找模型中的较早日期?

来源:互联网 

I have a model that where each entry has a date. How do I use queryset to find the entry with the earliest date? This is not dependent on 'pk' because I could add a row with an earlier date at a later time.I have a model that where each entry has a date




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: