From 9362b2301e9e3ab1f72385b23a70e04aa65466b5 Mon Sep 17 00:00:00 2001 From: Tim Fletcher Date: Sun, 31 Mar 2013 22:16:57 -0600 Subject: [PATCH] Fix typo in subfactories section of readme. --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index e25f788..d8041f2 100644 --- a/README +++ b/README @@ -241,7 +241,7 @@ the global factory, using a simple syntax : ``field__attr=42`` will set the attr class InnerFactory(factory.Factory): foo = 'foo' - bar = factory.LazyAttribute(lambda o: foo * 2) + bar = factory.LazyAttribute(lambda o: o.foo * 2) class ExternalFactory(factory.Factory): inner = factory.SubFactory(InnerFactory, foo='bar')