﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25185	Support for serialization of `functools.partial` objects in migrations	Piper Merriam	Piper Merriam	"It would be nice for the django migration engine to support serialization of `functools.partial` objects.  I don't see any obvious barriers to this beyond adding additional logic to the `MigrationWriter.serialize` method to handle objects of that type.

A general description of the approach that seems appropriate is as follows.

For an object `x` which passes the check `isinstance(x, functools.partial)`

* perform `MigrationWriter.serialize(x.func)` to get the serialized function string and imports.
* perform `MigrationWriter.serialize(x.args)` to get the serialized positional arguments that have been curried.
* perform `MigrationWriter.serizlize(x.keywords)` to get the serialized keyword arguments that have been curried.
* construct the string to reproduce the partial object with something like `""functools.partial({0}, *{1}, **{2})"".format(func_str, pos_args_str, keyword_args_str)`

Is this functionality desired and worth supporting?"	New feature	closed	Migrations	1.8	Normal	fixed			Ready for checkin	1	0	0	0	0	0
