Switch from Field.get_cache_name to Field.cache_name

Review Request #14766 — Created Jan. 8, 2026 and updated

Information

Djblets
release-6.x

Reviewers

Django model fields have for a long time had both a get_cache_name
method and a cache_name property. The method was deprecated in Django
5.1, and will be fully removed in 6.0. This change moves us over to
using the property.

Ran unit tests and no longer saw a warning.

Summary ID
Switch from Field.get_cache_name to Field.cache_name
Django model fields have for a long time had both a `get_cache_name` method and a `cache_name` property. The method was deprecated in Django 5.1, and will be fully removed in 6.0. This change moves us over to using the property. Testing Done: Ran unit tests and no longer saw a warning.
rypvlkksvrzluylrxunsmlmrvnlxwvvr
Checks run (2 succeeded)
flake8 passed.
JSHint passed.