#7840: 'get_list_or_404' does not know the slicing
-------------------------------------+--------------------------------------
          Reporter:  spike           |         Owner:  nobody         
            Status:  closed          |     Milestone:                 
         Component:  Core framework  |       Version:  SVN            
        Resolution:  wontfix         |      Keywords:  get_list_or_404
             Stage:  Unreviewed      |     Has_patch:  1              
        Needs_docs:  0               |   Needs_tests:  0              
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 You've changed this function entirely; the name is now misleading. It no
 longer returns a list -- it returns some kind of queryset.

 Since it's such a minor function and so easy to just do a normal queryset
 and check it for emptiness (or write your own helper function), it's not
 worth complicating things for the case where it slicing has to be done as
 part of the query, instead of back in Python. In the former case, just use
 the normal query interface.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7840#comment:1>
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