From 88c3f12b452d2919413441e3137d8eed35cf646c Mon Sep 17 00:00:00 2001 From: Veer Date: Sat, 3 Feb 2018 23:44:12 -0800 Subject: [PATCH] Makes Product.photo.upload_to string instead of binary --- project/example_app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/example_app/models.py b/project/example_app/models.py index d357125e..32b4ff94 100644 --- a/project/example_app/models.py +++ b/project/example_app/models.py @@ -5,7 +5,7 @@ class Product(models.Model): - photo = ImageField(upload_to=b'products') + photo = ImageField(upload_to='products') class Meta: abstract = True