查询条件 时间可以直接比较大小

Entry.objects.filter(pub_date__lte='2006-01-01')
原文地址:https://www.cnblogs.com/haoshine/p/5540910.html