summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Carp <jm.carp@gmail.com>2015-11-23 23:53:04 -0500
committerJoshua Carp <jm.carp@gmail.com>2015-11-23 23:53:04 -0500
commita98ad593280fb7ddef0b8e019c6106da09b931dc (patch)
treedef2f991c8aa6ff369e87b77a34ab675aecac836
parentbe85908f5205810083c524a25c7da565788f2c03 (diff)
downloadfactory-boy-a98ad593280fb7ddef0b8e019c6106da09b931dc.tar
factory-boy-a98ad593280fb7ddef0b8e019c6106da09b931dc.tar.gz
Clarify sequence behavior on inheritance
Sequences are only shared via inheritance if the model of the subclass is the same as or a subclass of the model of the parent class. Clarify the docs on this point.
-rw-r--r--docs/reference.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference.rst b/docs/reference.rst
index 6398d9a..44300a5 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -711,8 +711,9 @@ The sequence counter is shared across all :class:`Sequence` attributes of the
Inheritance
~~~~~~~~~~~
-When a :class:`Factory` inherits from another :class:`Factory`, their
-sequence counter is shared:
+When a :class:`Factory` inherits from another :class:`Factory` and the `model`
+of the subclass inherits from the `model` of the parent, the sequence counter
+is shared across the :class:`Factory` classes:
.. code-block:: python