Created
January 27, 2015 09:14
-
-
Save loic/deb428726d03316b3adb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt | |
index eb5c815..1faca0b 100644 | |
--- a/docs/ref/models/relations.txt | |
+++ b/docs/ref/models/relations.txt | |
@@ -150,6 +150,10 @@ Related objects reference | |
If ``clear=True``, the ``clear()`` method is called instead and the | |
whole set is added at once. | |
+ Note that ``set()`` being a compound operation it is subjected to race | |
+ conditions. For instance new objects may be added to the database in | |
+ between the call to ``clear()`` and the call to ``add()``. | |
+ | |
.. note:: | |
Note that ``add()``, ``create()``, ``remove()``, ``clear()``, and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment