              try:
                  ct = self._get_from_cache(opts)
              except KeyError:
                  needed_app_labels.add(opts.app_label)
                  needed_models.add(opts.object_name.lower())
                  needed_opts.add(opts)
              else:
                  results[model] = ct
          if needed_opts:
              cts = self.filter(
 
</s> remove                 model=opts.object_name.lower(),
 </s> add                 model=opts.model_name, </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                 model = opts.object_name.lower(),
 </s> add                 model = opts.model_name, </s> remove             model_label = '%s.%s' % (self.app_label, self.object_name.lower())
 </s> add             model_label = '%s.%s' % (self.app_label, self.model_name) </s> remove     Helper to look up a model from an "app_label.module_name" string.
 </s> add     Helper to look up a model from an "app_label.model_name" string.
                needed_models.add(opts.model_name)
              try:
                  ct = self._get_from_cache(opts)
              except KeyError:
                  needed_app_labels.add(opts.app_label)
                needed_models.add(opts.model_name)
                  needed_opts.add(opts)
              else:
                  results[model] = ct
          if needed_opts:
              cts = self.filter(
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/contenttypes/models.py