Django 1.6 fix.

module_name was renamed to model_name in django.db.models.options, so we
do the same thing too, in order to maintain compatability.