          if rel_to in self.admin_site._registry:
              # The related object is registered with the same AdminSite
              related_url = reverse('admin:%s_%s_changelist' %
                                      (rel_to._meta.app_label,
                                      rel_to._meta.module_name),
                                      current_app=self.admin_site.name)
  
              params = self.url_parameters()
              if params:
                  url = '?' + '&amp;'.join(['%s=%s' % (k, v) for k, v in params.items()])
 
</s> remove         info = (rel_to._meta.app_label, rel_to._meta.object_name.lower())
 </s> add         info = (rel_to._meta.app_label, rel_to._meta.model_name) </s> remove                                (opts.app_label, opts.module_name),
 </s> add                                (opts.app_label, opts.model_name), </s> remove                                (opts.app_label, opts.module_name),
 </s> add                                (opts.app_label, opts.model_name), </s> remove             model_name = model._meta.object_name.lower()
 </s> add             model_name = model._meta.model_name </s> remove                                     (opts.app_label, opts.module_name),
 </s> add                                     (opts.app_label, opts.model_name),
                                    rel_to._meta.model_name),
          if rel_to in self.admin_site._registry:
              # The related object is registered with the same AdminSite
              related_url = reverse('admin:%s_%s_changelist' %
                                      (rel_to._meta.app_label,
                                    rel_to._meta.model_name),
                                      current_app=self.admin_site.name)
  
              params = self.url_parameters()
              if params:
                  url = '?' + '&amp;'.join(['%s=%s' % (k, v) for k, v in params.items()])
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/admin/widgets.py