We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a15f0e5 commit f2f77cdCopy full SHA for f2f77cd
fileupload/models.py
@@ -2,7 +2,9 @@
2
3
class Picture(models.Model):
4
5
- file = models.ImageField(upload_to="pictures")
+ # 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")
8
slug = models.SlugField(max_length=50, blank=True)
9
10
def __unicode__(self):
0 commit comments