      from django.conf import settings
      if (request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS
              or (hasattr(request, 'user') and request.user.is_active
                  and request.user.is_staff)):
          response['X-Object-Type'] = "%s.%s" % (model._meta.app_label, model._meta.object_name.lower())
          response['X-Object-Id'] = str(object_id)
 
</s> remove from django.core.urlresolvers import reverse
 </s> add  </s> remove         key = (model._meta.app_label, model._meta.object_name.lower())
 </s> add         key = (model._meta.app_label, model._meta.model_name) </s> remove             "comments/%s_%s_preview.html" % (model._meta.app_label, model._meta.module_name),
 </s> add             "comments/%s_%s_preview.html" % (model._meta.app_label, model._meta.model_name), </s> remove                 {'%s__isnull' % self.parent_model._meta.module_name: False})
 </s> add                 {'%s__isnull' % self.parent_model._meta.model_name: False})
        response['X-Object-Type'] = "%s.%s" % (model._meta.app_label, model._meta.model_name)
      from django.conf import settings
      if (request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS
              or (hasattr(request, 'user') and request.user.is_active
                  and request.user.is_staff)):
        response['X-Object-Type'] = "%s.%s" % (model._meta.app_label, model._meta.model_name)
          response['X-Object-Id'] = str(object_id)
keep keep keep keep replace keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/core/xheaders.py