From 787981f9d1d5abc489a0b069e3353b8ad7aa9778 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 4 May 2020 10:01:30 +0200 Subject: [PATCH] Corrected models.FilePathField signature in docs. --- docs/ref/models/fields.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 71960e897e..036a2c996e 100644 --- a/docs/ref/models/fields.txt +++ b/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