          else:
              self.do_related_class(other, cls)
  
      def set_attributes_from_rel(self):
          self.name = self.name or (self.rel.to._meta.object_name.lower() + '_' + self.rel.to._meta.pk.name)
          if self.verbose_name is None:
              self.verbose_name = self.rel.to._meta.verbose_name
          self.rel.field_name = self.rel.field_name or self.rel.to._meta.pk.name
  
      def do_related_class(self, other, cls):
 
</s> remove             opts.app_label, opts.object_name.lower(),
 </s> add             opts.app_label, opts.model_name, </s> remove         self.name = '%s:%s' % (self.opts.app_label, self.opts.module_name)
        self.var_name = self.opts.object_name.lower()
 </s> add         self.name = '%s:%s' % (self.opts.app_label, self.opts.model_name)
        self.var_name = self.opts.model_name </s> remove         self.module_name, self.verbose_name = None, None
 </s> add         self.model_name, self.verbose_name = None, None </s> remove         self.module_name = 'cacheentry'
 </s> add         self.model_name = 'cacheentry' </s> remove             return self.field.rel.related_name or (self.opts.object_name.lower() + '_set')
 </s> add             return self.field.rel.related_name or (self.opts.model_name + '_set')
        self.name = self.name or (self.rel.to._meta.model_name + '_' + self.rel.to._meta.pk.name)
          else:
              self.do_related_class(other, cls)
  
      def set_attributes_from_rel(self):
        self.name = self.name or (self.rel.to._meta.model_name + '_' + self.rel.to._meta.pk.name)
          if self.verbose_name is None:
              self.verbose_name = self.rel.to._meta.verbose_name
          self.rel.field_name = self.rel.field_name or self.rel.to._meta.pk.name
  
      def do_related_class(self, other, cls):
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/db/models/fields/related.py