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