Removed django.utils.six dependency, copied the parts we still need for Python 2 compatibility.
get_base_polymorphic_model()