Opened 10 years ago
Closed 10 years ago
#25186 closed Cleanup/optimization (fixed)
Improve migration serialization of builtins
Description ¶
In the current state, when MigrationWriter.serialize
receives something from __builtin__
, the resulting string and imports contain __builtin__
. This means that the migration file will contain an import __builtin__
and the actual function will be called via __builtin__.range
.
It seems that the result call the function directly (without the __builtin__
prefix and that the import of __builtin__
should not be included.
Change History (4)
comment:1 by , 10 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 10 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
Pull request here https://github.com/django/django/pull/5063