Skip to content

Commit f2f77cd

Browse files
committed
Use FileField instead of ImageField, we don't need PIL in this demo.
1 parent a15f0e5 commit f2f77cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fileupload/models.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
class Picture(models.Model):
44

5-
file = models.ImageField(upload_to="pictures")
5+
# This is a small demo using FileField instead of ImageField, not
6+
# depending on PIL. You will probably want ImageField in your app.
7+
file = models.FileField(upload_to="pictures")
68
slug = models.SlugField(max_length=50, blank=True)
79

810
def __unicode__(self):

0 commit comments

Comments
 (0)