#19326: Add a first method to the QuerySet
-------------------------------------+-------------------------------------
     Reporter:  Wim Feijen           |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Ready for
     Keywords:  first                |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by akaariai):

 Some polish done, available from
 https://github.com/akaariai/django/compare/ticket_19326

 Biggest changes are addition of .last() method for symmetry, and automatic
 ordering by PK if there is no ordering defined otherwise. In addition some
 docs changes and move of the tests to new test module first_and_last.

 I will still ask at django-developers if the API is the wanted one,
 otherwise this should be 100% ready for commit.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19326#comment:5>
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 https://groups.google.com/groups/opt_out.


Reply via email to