id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux
13240,Modify RelatedManager and ManyRelatedManager add() and remove() to accept QuerySets and iterables,gabrielhurley,gabrielhurley,"I was surprised today to realize that the ``add()`` and ``remove()`` methods on ``ManyRelatedManager`` didn't work when passed a ``QuerySet``. It seemed like they ought to, so I wrote up a patch.
The patch allows the ``*objs`` argument to ``RelatedManager.add()``, ``RelatedManager.remove()``, ``ManyRelatedManager.add()``, and ``ManyRelatedManager.remove()`` to accept any number of either objects or querysets (of the appropriate model, of course).
The change passes the full test suite, includes new tests, and adds a note in the docs.
I understand if it's too late to make it into 1.2, but it'd be cool if it did. Mark the milestone accordingly.",New feature,assigned,"Database layer (models, ORM)",master,Normal,,,cmawebsite@…,Accepted,1,0,0,1,0,0