diff options
| author | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 19:35:36 +0000 |
|---|---|---|
| committer | Gary Wilson Jr <gary.wilson@gmail.com> | 2009-03-30 19:35:36 +0000 |
| commit | 10a3e41c8a3f4e4e2b51d2a152681213dec47a8b (patch) | |
| tree | 7f4d4068da2a2fae349b440f4aa2156ec5d253cc /docs/ref/models | |
| parent | 387bd8f386aff72e68a7eb042bdbdc15181b50a0 (diff) | |
[1.0.X]: Fixed #10076 -- Documented invalid arguments for `FileField`, based on patch from timo.
Backport of r10204 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/fields.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index df3a07b499..1daf6e2940 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -239,7 +239,8 @@ you try to save a model with a duplicate value in a :attr:`~Field.unique` field, a :exc:`django.db.IntegrityError` will be raised by the model's :meth:`~django.db.models.Model.save` method. -This option is valid on all field types except :class:`ManyToManyField`. +This option is valid on all field types except :class:`ManyToManyField` and +:class:`FileField`. ``unique_for_date`` ------------------- @@ -437,7 +438,13 @@ A :class:`CharField` that checks that the value is a valid e-mail address. .. class:: FileField(upload_to=None, [max_length=100, **options]) -A file-upload field. Has one **required** argument: +A file-upload field. + +.. note:: + The ``primary_key`` and ``unique`` arguments are not supported, and will + raise a ``TypeError`` if used. + +Has one **required** argument: .. attribute:: FileField.upload_to |
