1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00
django/tests/model_fields
Mariusz Felisiak b55699968f
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.
2021-05-13 08:53:44 +02:00
..
__init__.py
4x8.png
8x4.png
models.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_autofield.py Fixed #32620 -- Allowed subclasses of Big/SmallAutoField for DEFAULT_AUTO_FIELD. 2021-04-08 13:17:08 +02:00
test_binaryfield.py
test_booleanfield.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_charfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_datetimefield.py Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. 2020-11-06 09:24:50 +01:00
test_decimalfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_durationfield.py
test_field_flags.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
test_filefield.py Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 08:53:44 +02:00
test_filepathfield.py
test_floatfield.py
test_foreignkey.py Fixed 31207 -- Prevented references to non-local remote fields in ForeignKey.to_field. 2020-01-31 10:19:12 +01:00
test_genericipaddressfield.py
test_imagefield.py Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
test_integerfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_jsonfield.py Fixed #32483 -- Fixed QuerySet.values()/values_list() on JSONField key transforms with booleans on SQLite. 2021-03-23 08:28:47 +01:00
test_manytomanyfield.py
test_promises.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
test_slugfield.py
test_textfield.py Fixed #32178 -- Allowed database backends to skip tests and mark expected failures. 2020-12-10 18:00:57 +01:00
test_uuid.py
tests.py Refs #31369 -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00