1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00
django/tests/model_fields
Adam Johnson b9838c65ec Fixed #35405 -- Converted get_cache_name into a cached property in FieldCacheMixin.
FieldCacheMixin is used by related fields to track their cached values.
This work migrates get_cache_name() to be a cached property to optimize
performance by reducing unnecessary function calls when working with
related fields, given that its value remains constant.

Co-authored-by: Simon Charette <charette.s@gmail.com>
Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2024-05-21 16:19:29 -03:00
..
__init__.py
4x8.png
8x4.png
models.py Fixed #35127 -- Made Model.full_clean() ignore GeneratedFields. 2024-01-19 08:55:50 +01:00
test_autofield.py
test_binaryfield.py
test_booleanfield.py
test_charfield.py Fixed #24561 -- Added support for callables on model fields' choices. 2023-09-14 10:15:33 -03:00
test_datetimefield.py
test_decimalfield.py Fixed #34590 -- Reverted "Refs #33308 -- Improved adapting DecimalField values to decimal." 2023-05-24 10:59:55 +02:00
test_durationfield.py
test_field_flags.py
test_filefield.py Fixed #35384 -- Raised FieldError when saving a file without a name to FileField. 2024-05-15 12:02:45 +02:00
test_filepathfield.py
test_floatfield.py
test_foreignkey.py
test_generatedfield.py Fixed #35350 -- Fixed save() with pk set on models with GeneratedFields. 2024-04-10 15:43:50 +02:00
test_genericipaddressfield.py
test_imagefield.py Used addCleanup() in tests where appropriate. 2023-12-31 10:01:31 +01:00
test_integerfield.py Fixed #24561 -- Added support for callables on model fields' choices. 2023-09-14 10:15:33 -03:00
test_jsonfield.py Refs #34060 -- Fixed crash when filtering against literal JSON with psycopg2. 2024-02-16 07:40:33 +01:00
test_manytomanyfield.py
test_mixins.py Fixed #35405 -- Converted get_cache_name into a cached property in FieldCacheMixin. 2024-05-21 16:19:29 -03:00
test_promises.py
test_slugfield.py
test_textfield.py
test_uuid.py
tests.py Fixed #24561 -- Added support for callables on model fields' choices. 2023-09-14 10:15:33 -03:00