#2884: [newforms-admin] Incorrect sql generated when ordering a queryset where 
the
related model's Meta.ordering has an FK
---------------------------------------------------+------------------------
   Reporter:  bangcok_dangerus ( at ] hotmail.com  |                Owner:  
adrian           
     Status:  new                                  |            Component:  
Admin interface  
    Version:  SVN                                  |           Resolution:      
             
   Keywords:                                       |                Stage:  
Ready for checkin
  Has_patch:  1                                    |           Needs_docs:  0   
             
Needs_tests:  0                                    |   Needs_better_patch:  1   
             
---------------------------------------------------+------------------------
Changes (by mtredinnick):

  * summary:  incorrect sql generated when ordering a queryset where the
              related model's Meta.ordering has an FK => [
              newforms-admin] Incorrect sql generated when
              ordering a queryset where the related model's
              Meta.ordering has an FK

Comment:

 The patch is more or less correct for newforms-admin, although I doubt it
 will apply automatically because the line numbers have changed. Not
 totally in love with the idea of another nested function, but that can be
 fixed when committing.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2884#comment:4>
Django Code <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