Fixed #23415 -- Add fields for unmanaged and proxy model migrations

Ticket: https://code.djangoproject.com/ticket/23415
while you are here: optimize
and add period in the second docstring sentence too