Opened 11 years ago
Closed 11 years ago
#23894 closed Cleanup/optimization (fixed)
Favor kwargs over args in migration serializer / deconstruct wherever possible
| Reported by: | Markus Holtermann | Owned by: | Markus Holtermann | 
|---|---|---|---|
| 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
For the same reasons as outlined in #23892 (forwards compatibility) Django should use keyword arguments when serializing objects for migration files. This allows potential positional argument removals in the future.
Change History (7)
comment:1 by , 11 years ago
| Owner: | changed from to | 
|---|---|
| Status: | new → assigned | 
comment:2 by , 11 years ago
| Has patch: | set | 
|---|
comment:3 by , 11 years ago
| Patch needs improvement: | set | 
|---|
comment:4 by , 11 years ago
| Triage Stage: | Unreviewed → Accepted | 
|---|
comment:5 by , 11 years ago
| Patch needs improvement: | unset | 
|---|
comment:6 by , 11 years ago
| Triage Stage: | Accepted → Ready for checkin | 
|---|
comment:7 by , 11 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
I opened a pull request to unify the deconstruct methods: https://github.com/django/django/pull/3603