create content type django code example
Example: django content type for model
ctype = ContentType.objects.get(model='user')
related_to_user = Room.objects.filter(content_type=ctype)
ctype = ContentType.objects.get(model='user')
related_to_user = Room.objects.filter(content_type=ctype)