Getting ready

For this recipe to work, you will need to have the contenttypes app installed. It should be in the INSTALLED_APPS directory, by default, as shown in the following code:

# settings.py or config/base.py
INSTALLED_APPS = (
# ...
'django.contrib.contenttypes',
)

Again, make sure that you have already created the utils package for your model mixins.