Bugfix with ContentType

https://code.djangoproject.com/ticket/23519