diff options
author | Joshua Carp <jm.carp@gmail.com> | 2015-11-23 23:53:04 -0500 |
---|---|---|
committer | Joshua Carp <jm.carp@gmail.com> | 2015-11-23 23:53:04 -0500 |
commit | a98ad593280fb7ddef0b8e019c6106da09b931dc (patch) | |
tree | def2f991c8aa6ff369e87b77a34ab675aecac836 | |
parent | be85908f5205810083c524a25c7da565788f2c03 (diff) | |
download | factory-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.rst | 5 |
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 |