I've got a field in one model like
Now, I need to filter the objects by a data range, for example, all the objects that has date between 1 Jan 2011 to 31 Jan 2011? Thanks for your help! Use
Or if you are just trying to filter month wise:
EditAs lazerscience said, if you want a queryset which excludes the |
|
来自: 怎么了啊早上 > 《datetime》