Ticket #11278: assign-related-objects.diff
File assign-related-objects.diff, 551 bytes (added by , 15 years ago) |
---|
-
docs/topics/db/queries.txt
945 945 Removes all objects from the related object set. 946 946 947 947 To assign the members of a related set in one fell swoop, just assign to it 948 from any iterable object. Example:: 948 from any iterable object. The members may be model instances or related primary 949 key values. Example:: 949 950 950 951 b = Blog.objects.get(id=1) 951 952 b.entry_set = [e1, e2]