summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-04-22 14:44:08 +0000
committerAlex Gaynor <alex.gaynor@gmail.com>2012-04-22 14:44:08 +0000
commit3c5ff9d703be67b43655c5a40e8ee3719ad2871b (patch)
treefd8d883bdc31239d1d47ebaccc5fae33b5051a5d /docs/ref/forms
parent83fc9651713edfed9c3eff52b73933eb67a46a59 (diff)
Fixed #5893 -- Added a flag to FilePathField to allow listing folders, in addition to regular files. Thank you to Brian Rosner, for encouraging me to first contribute to Django 4 years ago.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17925 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/fields.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 4956a71b44..fa5800692f 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -555,6 +555,23 @@ For each field, we describe the default widget used if you don't specify
A regular expression pattern; only files with names matching this expression
will be allowed as choices.
+ .. attribute:: allow_files
+
+ .. versionadded:: 1.5
+
+ Optional. Either ``True`` or ``False``. Default is ``True``. Specifies
+ whether files in the specified location should be included. Either this or
+ :attr:`allow_folders` must be ``True``.
+
+ .. attribute:: allow_folders
+
+ .. versionadded:: 1.5
+
+ Optional. Either ``True`` or ``False``. Default is ``False``. Specifies
+ whether folders in the specified location should be included. Either this or
+ :attr:`allow_files` must be ``True``.
+
+
``FloatField``
~~~~~~~~~~~~~~