#13688: Ability to specify the field type for extra select
---------------------------------------------------+------------------------
          Reporter:  jonozzz                       |         Owner:  nobody     
             
            Status:  new                           |     Milestone:             
             
         Component:  Database layer (models, ORM)  |       Version:  1.2        
             
        Resolution:                                |      Keywords:  extra 
select field types
             Stage:  Design decision needed        |     Has_patch:  0          
             
        Needs_docs:  0                             |   Needs_tests:  0          
             
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by tobias):

  * needs_better_patch:  => 0
  * stage:  Unreviewed => Design decision needed
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 This is a feature request and I'm not sure how important it is or if it
 even makes sense to include.  Personally I don't mind the simplicity of
 getting the raw result back from the DB (it's what I'd expect when using
 .extra()).  You can always retrieve the value as a "hidden" field (e.g.,
 '_is_recent') and add a property ('is_recent') to your model that converts
 the field to the appropriate type.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13688#comment:1>
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to