Fixed test failures on Python 3 - refs #12288
Fixed #9057 -- Added default_permissions model meta option.

Thanks hvendelbo for the suggestion and koenb for the draft patch.
Merge remote-tracking branch 'core/master' into schema-alteration

Conflicts:
	django/db/models/options.py