mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
b9838c65ec
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> |
||
---|---|---|
.. | ||
__init__.py | ||
4x8.png | ||
8x4.png | ||
models.py | ||
test_autofield.py | ||
test_binaryfield.py | ||
test_booleanfield.py | ||
test_charfield.py | ||
test_datetimefield.py | ||
test_decimalfield.py | ||
test_durationfield.py | ||
test_field_flags.py | ||
test_filefield.py | ||
test_filepathfield.py | ||
test_floatfield.py | ||
test_foreignkey.py | ||
test_generatedfield.py | ||
test_genericipaddressfield.py | ||
test_imagefield.py | ||
test_integerfield.py | ||
test_jsonfield.py | ||
test_manytomanyfield.py | ||
test_mixins.py | ||
test_promises.py | ||
test_slugfield.py | ||
test_textfield.py | ||
test_uuid.py | ||
tests.py |