Skip to content

Instantly share code, notes, and snippets.

@loic
Created January 27, 2015 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loic/deb428726d03316b3adb to your computer and use it in GitHub Desktop.
Save loic/deb428726d03316b3adb to your computer and use it in GitHub Desktop.
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