From 6834fd72331f186a1f1fe793e193b3cfba36d5b7 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Sat, 5 Oct 2013 18:43:52 +0200 Subject: doc: Fix typo in django notes. --- docs/orms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/orms.rst b/docs/orms.rst index 33b3e0a..b720ed1 100644 --- a/docs/orms.rst +++ b/docs/orms.rst @@ -83,7 +83,7 @@ All factories for a Django :class:`~django.db.models.Model` should use the FACTORY_FOR = models.MyAbstractModel ABSTRACT_FACTORY = True - class MyConcreteModelFactory(MyAbstractModel): + class MyConcreteModelFactory(MyAbstractModelFactory): FACTORY_FOR = models.MyConcreteModel Otherwise, factory_boy will try to get the 'next PK' counter from the abstract model. -- cgit v1.2.3