Changes between Initial Version and Version 1 of Ticket #36523, comment 3


Ignore:
Timestamp:
Aug 8, 2025, 2:49:32 AM (4 weeks ago)
Author:
shrutisachan08

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36523, comment 3

    initial v1  
     1Hi, I’m interested in working on this.
     2From what I understand, the goal is to extract the existing TypeSerializer logic for determining a module path into a reusable helper in django.utils, and ensure it covers edge cases where f"{val.__module__}.{val.__qualname__}" isn’t sufficient.
     3My plan would be:
     4
     5Review and adapt the current implementation in django.migrations.serializer.TypeSerializer.
     6
     7Add unit tests for different input types (functions, classes, nested classes, builtins, etc.).
     8
     9Place the helper in django.utils and update the current usages in the codebase to use it.
     10
     11Could you confirm if this approach makes sense, and if there’s a preferred name/location for the helper before I start a patch?
Back to Top