Re: [#26151] Refactor MigrationWriter.serialize() to use a factory pattern

2016-01-29 Thread Tim Graham
I doubt that serialization support is "feature complete", given some recent history. I guess it would be nice to have the hook so that users don't have to wait for the next release of Django. Django 1.8.1: Added support for serializing datetime.timedelta objects. Django 1.9: Added support for se

[#26151] Refactor MigrationWriter.serialize() to use a factory pattern

2016-01-29 Thread Markus Holtermann
Hi all, Ticket: https://code.djangoproject.com/ticket/26151 PR: https://github.com/django/django/pull/6059 This pull request suggests to rewrite the serialization in the MigrationWriter to dedicated classes which are then used by a factory function. The reasoning behind this is to reduce the co