what does >>> from django.contrib.contenttypes.models import ContentType >>> ContentType.objects.all().delete() >>> quit() do code example
Example: django content type for model
ctype = ContentType.objects.get(model='user')
related_to_user = Room.objects.filter(content_type=ctype)