#11402: exists() method on QuerySets
------------------------------------------+---------------------------------
 Reporter:  Alex                          |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.0       
 Keywords:                                |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 There is a nice little idiom in Django for testing whether any result set
 corresponds to a QuerySet: {{{ qs.extra(select={'a':
 1}).values('a').order_by() }}} .  This is used in at least 2 places within
 Django.  It's a very nice idiom and it should be a method on a QuerySet
 because otherwise every time you use it you have to write a comment
 explaining what the hell you're doing.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11402>
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