              # needed around opts.verbose_name_raw because name_raw might be a
              # django.utils.functional.__proxy__ object.
              ct, created = self.get_or_create(
                  app_label = opts.app_label,
                  model = opts.object_name.lower(),
                  defaults = {'name': smart_text(opts.verbose_name_raw)},
              )
              self._add_to_cache(self.db, ct)
  
          return ct
 
</s> remove                 model=opts.object_name.lower(),
 </s> add                 model=opts.model_name, </s> remove         (model._meta.object_name.lower(), model)
 </s> add         (model._meta.model_name, model) </s> remove             opts.app_label, opts.object_name.lower(),
 </s> add             opts.app_label, 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_name = model._meta.object_name.lower()
 </s> add             model_name = model._meta.model_name
                model = opts.model_name,
              # needed around opts.verbose_name_raw because name_raw might be a
              # django.utils.functional.__proxy__ object.
              ct, created = self.get_or_create(
                  app_label = opts.app_label,
                model = opts.model_name,
                  defaults = {'name': smart_text(opts.verbose_name_raw)},
              )
              self._add_to_cache(self.db, ct)
  
          return ct
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