Changes between Initial Version and Version 8 of Ticket #36523


Ignore:
Timestamp:
Sep 3, 2026, 9:36:03 AM (3 weeks ago)
Author:
Jacob Walls
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36523

    • Property Component UncategorizedUtilities
    • Property Easy pickings unset
    • Property Triage Stage UnreviewedAccepted
    • Property Versiondev
    • Property Owner set to shrutisachan08
    • Property Status newassigned
    • Property Cc Jake Howard added
  • Ticket #36523 – Description

    initial v8  
    11Finding the module path for where a given class or function is defined is functionality used in a few places across the Django codebase. Whilst in the majority of cases, `f"{val.__module__}.{val.__qualname__}"` is enough, there are some cases it's not.
    22
    3 As part of #35859, a few more cases of this pattern are being added to the codebase. I think we're now at the [point https://en.wikipedia.org/wiki/Rule_of_three_(computer_programming)] where it makes sense to extract this out to a helper function somewhere in `django.utils`. The implementation in `django.migrations.serializer.TypeSerializer` seems to be the most robust, however will want some more thorough testing based on different input types.
     3As part of #35859, a few more cases of this pattern are being added to the codebase. I think we're now at the [https://en.wikipedia.org/wiki/Rule_of_three_(computer_programming) point] where it makes sense to extract this out to a helper function somewhere in `django.utils`. The implementation in `django.migrations.serializer.TypeSerializer` seems to be the most robust, however will want some more thorough testing based on different input types.
Back to Top