[Django]-Related Field got invalid lookup: name with content_type__name

6👍

From the release notes for Django 1.8:

The name field of django.contrib.contenttypes.models.ContentType has
been removed by a migration and replaced by a property. That means
it’s not possible to query or filter a ContentType by this field any
longer.

Leave a comment