summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2016-03-12 12:47:25 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2016-03-12 12:47:25 +0100
commit094a66fb0e6a70c15cc7cbdee5d40ba5e128c433 (patch)
tree1fb2976b063582cc8aff08fdb886ac1419ee4228
parentdc1de7297b9b508afad9386285aebd57ac3f11f2 (diff)
downloadfactory-boy-094a66fb0e6a70c15cc7cbdee5d40ba5e128c433.tar
factory-boy-094a66fb0e6a70c15cc7cbdee5d40ba5e128c433.tar.gz
docs: Del obsolete note on abstract Django models
That section described code required when factory_boy was automagically computing sequence numbers from the current PK value. Closes #280
-rw-r--r--docs/orms.rst16
1 files changed, 0 insertions, 16 deletions
diff --git a/docs/orms.rst b/docs/orms.rst
index af20917..fb3543d 100644
--- a/docs/orms.rst
+++ b/docs/orms.rst
@@ -96,22 +96,6 @@ All factories for a Django :class:`~django.db.models.Model` should use the
[<User: john>, <User: jack>]
-.. note:: If a :class:`DjangoModelFactory` relates to an :obj:`~django.db.models.Options.abstract`
- model, be sure to declare the :class:`DjangoModelFactory` as abstract:
-
- .. code-block:: python
-
- class MyAbstractModelFactory(factory.django.DjangoModelFactory):
- class Meta:
- model = models.MyAbstractModel
- abstract = True
-
- class MyConcreteModelFactory(MyAbstractModelFactory):
- class Meta:
- model = models.MyConcreteModel
-
- Otherwise, factory_boy will try to get the 'next PK' counter from the abstract model.
-
Extra fields
""""""""""""