summaryrefslogtreecommitdiff
path: root/tests/djapp
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-11-25 00:51:31 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-11-25 00:51:31 +0100
commitccd6a9927483b8789dee13c2d68a4407e2d37f94 (patch)
treef4824ea76bdf370f71be124dad2f61b32f666728 /tests/djapp
parent689b06c59788dedfce0af444760a3e5966761016 (diff)
downloadfactory-boy-ccd6a9927483b8789dee13c2d68a4407e2d37f94.tar
factory-boy-ccd6a9927483b8789dee13c2d68a4407e2d37f94.tar.gz
django: Fix lazy loading of 'son' factories (Closes #109).
Diffstat (limited to 'tests/djapp')
-rw-r--r--tests/djapp/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py
index 3f25fbb..e98279d 100644
--- a/tests/djapp/models.py
+++ b/tests/djapp/models.py
@@ -55,6 +55,10 @@ class ConcreteSon(AbstractBase):
pass
+class StandardSon(StandardModel):
+ pass
+
+
WITHFILE_UPLOAD_TO = 'django'
WITHFILE_UPLOAD_DIR = os.path.join(settings.MEDIA_ROOT, WITHFILE_UPLOAD_TO)