#17813: Implement an opposite method for Entry.objects.latest
----------------------------------------------+--------------------
     Reporter:  tonnzor                       |      Owner:  nobody
         Type:  New feature                   |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  SVN
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  1
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 At the moment we have '''`Entry.objects.latest`''' method that efficiently
 gets the last entry in queryset
 [https://docs.djangoproject.com/en/dev/ref/models/querysets/#latest]

 We need another handy method that would do the same but getting the first
 element.

 I suggest to name it '''`first`''' or something like that.

 I have attached a sample patch.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17813>
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