#15494: Using only('pk') in related set raises FieldDoesNotExist
-------------------------------------+-------------------------------------
               Reporter:  anonymous  |        Owner:  GDorn
                   Type:  Bug        |       Status:  closed
              Milestone:             |    Component:  Database layer
                Version:  1.2        |  (models, ORM)
             Resolution:  fixed      |     Severity:  Normal
           Triage Stage:  Accepted   |     Keywords:
    Needs documentation:  0          |    Has patch:  1
Patch needs improvement:  1          |  Needs tests:  1
-------------------------------------+-------------------------------------
Changes (by mtredinnick):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [16668]:
 {{{
 #!CommitTicketReference repository="" revision="16668"
 Allow "pk" as a field alias in QuerySet.only() calls.

 Thanks to GDorn for the patch. Fixed #15494.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15494#comment:6>
Django <https://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