#10483: it would be better if parameters of QuerySet were lazily evaluated
------------------------------------------+---------------------------------
 Reporter:  liangent                      |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  SVN       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 see #10466

 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10483>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to