diff options
| author | Henry Dang <henrydangprg@gmail.com> | 2016-11-26 13:23:03 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-29 16:12:24 -0500 |
| commit | 7cddd8a02e60332c0d02f565c450b0eea0d88438 (patch) | |
| tree | 26c56407b91b81d8a61027ff381f024324af4931 /docs/ref | |
| parent | b8a815e9dfea89034ede7ff786551f89af84a31b (diff) | |
Fixed #27358 -- Added a system check to prevent FileField's upload_to from starting with a slash.
Thanks Frank Bijlsma for the initial patch.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/checks.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index a3c659aad5..1f35c5bb0f 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -189,6 +189,8 @@ File Fields * **fields.E200**: ``unique`` is not a valid argument for a ``FileField``. *This check is removed in Django 1.11*. * **fields.E201**: ``primary_key`` is not a valid argument for a ``FileField``. +* **fields.E202**: ``FileField``’s ``upload_to`` argument must be a relative + path, not an absolute path. * **fields.E210**: Cannot use ``ImageField`` because Pillow is not installed. Related Fields |
