diff options
author | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2015-03-27 17:00:32 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polyconseil.fr> | 2015-03-27 17:46:02 +0100 |
commit | 5363951bb62ca90d971bf036851dea564204ed2e (patch) | |
tree | 7180115c88a632f9dcfc36ca0846caedbc3ec952 /tests/djapp | |
parent | bdc1b815cfdf3028379c6c3f18c9c47ee8298a70 (diff) | |
download | factory-boy-5363951bb62ca90d971bf036851dea564204ed2e.tar factory-boy-5363951bb62ca90d971bf036851dea564204ed2e.tar.gz |
Support declarations in FileField/ImageField.
Previously, the declarations (``factory.Sequence`` & co) weren't properly computed.
Diffstat (limited to 'tests/djapp')
-rw-r--r-- | tests/djapp/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/djapp/models.py b/tests/djapp/models.py index 96ee5cf..1c1fd8e 100644 --- a/tests/djapp/models.py +++ b/tests/djapp/models.py @@ -79,6 +79,7 @@ if Image is not None: # PIL is available class WithImage(models.Model): animage = models.ImageField(upload_to=WITHFILE_UPLOAD_TO) + size = models.IntegerField(default=0) else: class WithImage(models.Model): |