summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
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 e0a744a..7182be6 100644
--- a/factory/django.py
+++ b/factory/django.py
@@ -142,7 +142,7 @@ class FileField(declarations.PostGenerationDeclaration):
path = content.name
else:
- data = params.get('data', '')
+ data = params.get('data', b'')
content = django_files.base.ContentFile(data)
if path: