#6707: Another implementation for ReverseManyRelatedObjectsDescriptor.__set__
method
-------------------------------------+-------------------------------------
     Reporter:  favo <favo@…>        |                    Owner:  sfllaw
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  SVN
  (models, ORM)                      |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:                       |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by sfllaw):

 * owner:  nobody => sfllaw
 * needs_better_patch:  1 => 0
 * status:  new => assigned


Comment:

 6707_m2m_set.diff includes a patch that performs the minimum amount of
 DELETE and INSERT statements for the {{{__set__}}} method. In addition, I
 have changed {{{_add_items()}}} so it does not do an extra SELECT if
 {{{__set__}}} has already removed duplicates, so we do not perform an
 extra query.

 This patch applies to SVN trunk.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/6707#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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to