summaryrefslogtreecommitdiff
path: root/tests/djapp
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-27 01:19:24 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-27 01:19:24 +0200
commit168ef54e5acfac59f7c625e75a0c7c6d2484cdf0 (patch)
tree30649368a7fe6db8f1c3c965f598a17ac23a495a /tests/djapp
parent77807b4a6bbec59ea98c9f53557ac96239c6300e (diff)
downloadfactory-boy-168ef54e5acfac59f7c625e75a0c7c6d2484cdf0.tar
factory-boy-168ef54e5acfac59f7c625e75a0c7c6d2484cdf0.tar.gz
Add factory.django.ImageField (Closes #52).
Diffstat (limited to 'tests/djapp')
-rw-r--r--tests/djapp/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py
index 52acebe..7bb5ace 100644
--- a/tests/djapp/models.py
+++ b/tests/djapp/models.py
@@ -42,3 +42,8 @@ WITHFILE_UPLOAD_DIR = os.path.join(settings.MEDIA_ROOT, WITHFILE_UPLOAD_TO)
class WithFile(models.Model):
afile = models.FileField(upload_to=WITHFILE_UPLOAD_TO)
+
+
+class WithImage(models.Model):
+ animage = models.ImageField(upload_to=WITHFILE_UPLOAD_TO)
+