瀏覽代碼

Refs #32243 -- Fixed typo in docs/topics/files.txt.

Grace Hawkins 3 年之前
父節點
當前提交
25514b604a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/files.txt

+ 1 - 1
docs/topics/files.txt

@@ -33,7 +33,7 @@ store a photo::
         name = models.CharField(max_length=255)
         price = models.DecimalField(max_digits=5, decimal_places=2)
         photo = models.ImageField(upload_to='cars')
-        specs = models.FileFile(upload_to='specs')
+        specs = models.FileField(upload_to='specs')
 
 Any ``Car`` instance will have a ``photo`` attribute that you can use to get at
 the details of the attached photo::