Bläddra i källkod

Corrected models.FilePathField signature in docs.

Adam Johnson 4 år sedan
förälder
incheckning
787981f9d1
1 ändrade filer med 2 tillägg och 2 borttagningar
  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