          For historical reasons, model name lookups using get_model() are
          case insensitive, so we make sure we are case insensitive here.
          """
          if self.swappable:
              model_label = '%s.%s' % (self.app_label, self.object_name.lower())
              swapped_for = getattr(settings, self.swappable, None)
              if swapped_for:
                  try:
                      swapped_label, swapped_object = swapped_for.split('.')
                  except ValueError:
 
</s> remove         return "%s.%s" % (smart_text(self.app_label), smart_text(self.module_name))
 </s> add         return "%s.%s" % (smart_text(self.app_label), smart_text(self.model_name)) </s> remove             to_name = to._meta.object_name.lower()
 </s> add             to_name = to._meta.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. </s> remove                 needed_models.add(opts.object_name.lower())
 </s> add                 needed_models.add(opts.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),
            model_label = '%s.%s' % (self.app_label, self.model_name)
          For historical reasons, model name lookups using get_model() are
          case insensitive, so we make sure we are case insensitive here.
          """
          if self.swappable:
            model_label = '%s.%s' % (self.app_label, self.model_name)
              swapped_for = getattr(settings, self.swappable, None)
              if swapped_for:
                  try:
                      swapped_label, swapped_object = swapped_for.split('.')
                  except ValueError:
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/db/models/options.py