所以我有一个模型,我想过滤所有创建日期小于今天日期的模型。
例如
Class Post(models.Model):
created=model.DateField()
view.py
get_objects_with_date_lessthan_today_date=Post.objects.filter(created=)
在我看来,我需要过滤所有创建日期小于今天日期的对象。请寻求帮助。遵循这种逻辑
答案 0 :(得分:0)
使用print: onPressed: This is called once
print: userBloc: This is called N times
print: userBloc: This is called N times
...
print: userBloc: This is called N times
(少于filter lookup:
__lt