Allow migrations.Operation to control their output.
|Reported by:||loic84||Owned by:||Loic Bistuer <loic.bistuer@…>|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Currently MigrationWriter controls the output of migrations and to do so it renders the various operations with a generic format.
The problem is operations such as CreateModel end up writing all the fields on a single line, which makes the migration file difficult to review.
I propose that Operations should control their own output.
I had a go at this in https://github.com/django/django/pull/1681.
Change History (6)
comment:1 Changed 21 months ago by timo
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted
comment:5 Changed 18 months ago by Loic Bistuer <loic.bistuer@…>
- Owner set to Loic Bistuer <loic.bistuer@…>
- Resolution set to fixed
- Status changed from new to closed