#8065: Calling queyset.in_bulk (without any arguments) should evaluate the whole queryset. ---------------------------------------------------+------------------------ Reporter: ElliottM | Owner: nobody Status: reopened | Milestone: post-1.0 Component: Database layer (models, ORM) | Version: SVN Resolution: | Keywords: in_bulk filter list Stage: Design decision needed | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ---------------------------------------------------+------------------------ Changes (by anonymous):
* status: closed => reopened * resolution: wontfix => Comment: http://docs.djangoproject.com/en/dev/ref/models/querysets/#in-bulk-id-list "If you pass in_bulk() an empty list, you'll get an empty dictionary." Passing it an empty list is quite different than passing no parameters at all, so all previous code would be compatible. queryset.in_bulk() is also a lot easier to read than the code snippet you posted. -- Ticket URL: <http://code.djangoproject.com/ticket/8065#comment:3> Django <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 django-updates@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---