          if has_admin:
              admin_url = reverse('%s:%s_%s_change'
                                  % (admin_site.name,
                                     opts.app_label,
                                     opts.object_name.lower()),
                                  None, (quote(obj._get_pk_val()),))
              p = '%s.%s' % (opts.app_label,
                             opts.get_delete_permission())
              if not user.has_perm(p):
                  perms_needed.add(opts.verbose_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                                         (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                                (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),
                                   opts.model_name),
          if has_admin:
              admin_url = reverse('%s:%s_%s_change'
                                  % (admin_site.name,
                                     opts.app_label,
                                   opts.model_name),
                                  None, (quote(obj._get_pk_val()),))
              p = '%s.%s' % (opts.app_label,
                             opts.get_delete_permission())
              if not user.has_perm(p):
                  perms_needed.add(opts.verbose_name)
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/admin/util.py