#8291: "pk" alias doesn't work for Meta option "ordering"
-------------------------------------+-------------------------------------
     Reporter:  peterd12             |                    Owner:  dgouldin
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  Meta ordering pk     |      Needs documentation:  0
  alias                              |  Patch needs improvement:  1
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by dgouldin):

 Ok looks like setup_joins includes code to specifically handle the pk
 case:

 
https://github.com/django/django/blob/3904f208b979e55356eefcd0291fb0d7fdfebe45/django/db/models/sql/query.py#L1284

 So I feel fine excluding pk specifically from ordering validation in
 validation.py.  I'll update the patch, removing changes to options.py.

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