From 094a66fb0e6a70c15cc7cbdee5d40ba5e128c433 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Sat, 12 Mar 2016 12:47:25 +0100 Subject: 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 --- docs/orms.rst | 16 ---------------- 1 file changed, 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 [, ] -.. 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 """""""""""" -- cgit v1.2.3