summaryrefslogtreecommitdiff
path: root/tests/djapp/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/djapp/models.py')
-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)
+