#8467: For ManyToMany manager, we should convert objects being added or removed 
to
the pk type if they are not.
-------------------------------------+-------------------------------------
     Reporter:  Wonlay               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  Duplicate entry,     |             Triage Stage:  Accepted
  add, remove, ManyToManyField       |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 A regression test for the above optimization could be to
 `assertNumQueries(1)` on the `b.a.add(str(pk))` call when a `m2m_changed`
 signal is registered for the relationship. That is to disable the ''fast''
 insertion mechanism that is enabled on all backends except for Oracle.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/8467#comment:15>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.37268d33b90f2a42b855d5fc258cbc3a%40djangoproject.com.

Reply via email to