summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2013-07-02 11:14:08 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2013-07-02 11:31:00 +0200
commit5b285bca1f6572d4eda7fb04fe7d4d4fef33ab0b (patch)
tree07fe7d8de673815376b25cf11330d52ee1537eb1 /factory
parent0a35ba85329803ef39028edb238d5b5241585128 (diff)
downloadfactory-boy-5b285bca1f6572d4eda7fb04fe7d4d4fef33ab0b.tar
factory-boy-5b285bca1f6572d4eda7fb04fe7d4d4fef33ab0b.tar.gz
Fix default color for factory.django.ImageField
Diffstat (limited to 'factory')
-rw-r--r--factory/django.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/django.py b/factory/django.py
index 04bdbbf..1672fcc 100644
--- a/factory/django.py
+++ b/factory/django.py
@@ -191,7 +191,7 @@ class ImageField(FileField):
width = params.get('width', 100)
height = params.get('height', width)
- color = params.get('blue')
+ color = params.get('color', 'blue')
image_format = params.get('format', 'JPEG')
thumb = Image.new('RGB', (width, height), color)