浏览代码

Corrected models.FilePathField signature in docs.

Adam Johnson 4 年之前
父节点
当前提交
787981f9d1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/ref/models/fields.txt

+ 2 - 2
docs/ref/models/fields.txt

@@ -1006,10 +1006,10 @@ periodically via e.g. cron).
 ``FilePathField``
 -----------------
 
-.. class:: FilePathField(path=None, match=None, recursive=False, max_length=100, **options)
+.. class:: FilePathField(path='', match=None, recursive=False, allow_files=True, allow_folders=False, max_length=100, **options)
 
 A :class:`CharField` whose choices are limited to the filenames in a certain
-directory on the filesystem. Has three special arguments, of which the first is
+directory on the filesystem. Has some special arguments, of which the first is
 **required**:
 
 .. attribute:: FilePathField.path