Fixed some sphinx errors and added some links.
Adding 'sqlmigrate' command and quote_parameter to support it.
Fixed #21013 -- ModelAdmin.get_queryset considered for Admin history.

Admin history was using get_object to fetch the model instance instead
of relaying in get_queryset.

This patches modifies that behavior fixing the bug reported in
ticket #21013.