• 
      

    Switch from Field.get_cache_name to Field.cache_name

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

    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
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-6.x (7ee2464)