it would be better if parameters of QuerySet were lazily evaluated
|Reported by:||liangent||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
i think a lazy evaluation is better. this can give a choice to do that. if you want eager evaluation, you can add
i met that problem when i was trying to get an object list page by generic view and i created the queryset in
urls.py. now, i have to write a view to just wrap the generic view and pass the current time to it. i think it can be simplified by implementing lazy evaluation in parameters of querysets.