summaryrefslogtreecommitdiff
path: root/docs/orms.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/orms.rst')
-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
""""""""""""