#23560 closed Bug (fixed)
MigrationWriter prefixes builtin types with __builtins__.
| Reported by: | Loic Bistuer | Owned by: | nobody |
|---|---|---|---|
| Component: | Migrations | Version: | 1.7 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
When MigrationWriter finds a builtin type (i.e. not a builtin type instance) it serializes as follows:
import __builtin__ __builtin__.dict
__builtin__ isn't needed nor pretty, but worse it was renamed builtins in PY3 so migrations written in PY2 wouldn't work in PY3 and vice versa.
Change History (4)
comment:1 by , 11 years ago
| Has patch: | set |
|---|
comment:2 by , 11 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|---|
| Version: | master → 1.7 |
comment:3 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
PR https://github.com/django/django/pull/3281.