1
# -*- coding: utf-8 -*-
2
"""Some util functions."""
3
from django.conf import settings
4
from django.contrib.contenttypes.models import ContentType
8
"""Return the ContentType of the object's model."""
9
return ContentType.objects.get(app_label=obj._meta.app_label,
10
model=obj._meta.module_name)