[Django] #26568: in_bulk when run on a query set should not need a list of IDs

2016-05-02 Thread Django
#26568: in_bulk when run on a query set should not need a list of IDs
---+
 Reporter:  brillgen   |  Owner:  nobody
 Type:  Bug| Status:  new
Component:  Uncategorized  |Version:  1.8
 Severity:  Normal |   Keywords:
 Triage Stage:  Unreviewed |  Has patch:  0
Easy pickings:  0  |  UI/UX:  0
---+
 in_bulk provides a great shortcut for getting a primary key dictionary for
 accessing objects randomly without hitting the database repeatedly.
 However, for some use case it has been designed as a manager function
 which takes a list of PKs. But when it is run on a query set, by default
 it should just return that very query set in a dictionary form (sort of
 obvious isn't it?)

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.5540ea3f612d6c13b3becbd15e8d1d1d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #26568: in_bulk when run on a query set should not need a list of IDs

2016-05-02 Thread Django
#26568: in_bulk when run on a query set should not need a list of IDs
-+-
 Reporter:  brillgen |Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Database layer   |  Version:  1.8
  (models, ORM)  |
 Severity:  Normal   |   Resolution:  duplicate
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by timgraham):

 * status:  new => closed
 * needs_better_patch:   => 0
 * component:  Uncategorized => Database layer (models, ORM)
 * resolution:   => duplicate
 * needs_tests:   => 0
 * needs_docs:   => 0
 * type:  Bug => Cleanup/optimization


Comment:

 Duplicate of #8065 (fixed in Django 1.10).

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.bcc60300ff96d0a158e95adeb2617168%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.