mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #27358 -- Added a system check to prevent FileField's upload_to from starting with a slash.
Thanks Frank Bijlsma for the initial patch.
This commit is contained in:
parent
b8a815e9df
commit
7cddd8a02e
3 changed files with 42 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue