Fixed #23822 -- Added support for serializing model managers in migration

Ticket: https://code.djangoproject.com/ticket/23822

- [x] Implementation
- [x] User documentation
- [x] Reference documentation
- [x] Tests
Yes, I had checked on master, which doesn't make sense. I get the same result on this branch.