Ticket #3142: faster_m2m_assignment.diff
File faster_m2m_assignment.diff, 781 bytes (added by , 18 years ago) |
---|
-
django/db/models/fields/related.py
405 405 406 406 manager = self.__get__(instance) 407 407 manager.clear() 408 for obj in value: 409 manager.add(obj) 408 manager.add(*value) 410 409 411 410 class ReverseManyRelatedObjectsDescriptor(object): 412 411 # This class provides the functionality that makes the related-object … … 447 446 448 447 manager = self.__get__(instance) 449 448 manager.clear() 450 for obj in value: 451 manager.add(obj) 449 manager.add(*value) 452 450 453 451 class ForeignKey(RelatedField, Field): 454 452 empty_strings_allowed = False