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 23822,Serialize model managers in migrations,Markus Holtermann,Markus Holtermann,"Right now it's impossible to use e.g. the `UserManager` in a `RunPython` operation, thus `User.objects.create_superuser()` isn't available. We should serialize the model managers into migrations too. I suggest to do it the same way as with callable argument values on fields like `upload_to`: the manager need to stay around as long as there is a migration referencing it.",New feature,closed,Migrations,dev,Normal,fixed,,,Ready for checkin,1,0,0,0,0,0