django1/django/db/models/fields
Mariusz Felisiak b7d4a6fa65 [3.1.x] Fixed #32718 -- Relaxed file name validation in FileField.
- Validate filename returned by FileField.upload_to() not a filename
  passed to the FileField.generate_filename() (upload_to() may
  completely ignored passed filename).
- Allow relative paths (without dot segments) in the generated filename.

Thanks to Jakub Kleň for the report and review.
Thanks to all folks for checking this patch on existing projects.
Thanks Florian Apolloner and Markus Holtermann for the discussion and
implementation idea.

Regression in 0b79eb3691.

Backport of b55699968f from main.
2021-05-13 08:56:06 +02:00
..
__init__.py [3.1.x] Fixed #31663 -- Made DecimalField.to_python() handle non-numeric invalid values. 2020-06-05 21:14:33 +02:00
files.py [3.1.x] Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 08:56:06 +02:00
json.py [3.1.x] Fixed #32252 -- Fixed __isnull=True on key transforms on SQLite and Oracle. 2020-12-11 11:18:15 +01:00
mixins.py Refs #12990 -- Moved CheckFieldDefaultMixin to the django.db.models.fields.mixins. 2019-10-17 12:30:29 +02:00
proxy.py Removed unused OrderWrt.deconstruct(). 2017-07-06 18:45:53 -04:00
related.py [3.1.x] Fixed #31742 -- Fixed makemigrations crash on ForeignKey to an app with mixed case label. 2020-06-26 23:20:21 +02:00
related_descriptors.py Refs #31282 -- Clarified M2O add/remove/set with PK behaviour. 2020-02-18 19:54:29 +01:00
related_lookups.py [3.1.x] Bumped minimum isort version to 5.1.0. 2020-09-30 09:51:31 +02:00
reverse_related.py [3.1.x] Fixed #31952 -- Fixed EmptyFieldListFilter crash with reverse relationships. 2020-08-31 10:40:21 +02:00