Skip to content

Commit 42d036d

Browse files
committed
Changed to FileField to be able to upload any filetype
1 parent d362c94 commit 42d036d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileupload/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Picture(models.Model):
99
problems installing pillow, use a more generic FileField instead.
1010
1111
"""
12-
file = models.ImageField(upload_to="pictures")
12+
file = models.FileField(upload_to="pictures")
1313
slug = models.SlugField(max_length=50, blank=True)
1414

1515
def __unicode__(self):

0 commit comments

Comments
 (0)