#2482: [patch]  Add optional flat values() to QuerySet
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian
     Type:  enhancement          |       Status:  new   
 Priority:  normal               |    Milestone:        
Component:  Database wrapper     |      Version:        
 Severity:  normal               |   Resolution:        
 Keywords:                       |  
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):

 A new patch is attached, {{{valuelist.diff}}}, which creates a new method
 called {{{valuelist()}}}.  This patch adds a new class,
 {{{ValueListQuerySet}}}, which inherits from {{{ValuesQuerySet}}}.  I
 factored some of the logic out of {{{ValuesQueryset}}}'s {{{iterator()}}}
 method into a {{{get_columns()}}} method and a {{{get_field_names()}}}
 method, so that the same logic could be used in the
 {{{ValueListQuerySet}}} object.
 
 There are two doctests added, and they both pass.
 
 I hope this is an appropriate solution.
 
 P.S.  The last diff I attached could not be previewed by Trac for some
 reason.  I'm about to attach a new one.  If it doesn't work either, does
 anyone have any idea what I'm doing wrong?

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2482>
Django <http://code.djangoproject.org/>
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to