Changes between Initial Version and Version 8 of Ticket #36523
- Timestamp:
- Sep 3, 2026, 9:36:03 AM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36523
- Property Component Uncategorized → Utilities
- Property Easy pickings unset
- Property Triage Stage Unreviewed → Accepted
- Property Version → dev
- Property Owner set to
- Property Status new → assigned
- Property Cc added
-
Ticket #36523 – Description
initial v8 1 1 Finding 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. 2 2 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.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 [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.