      def get_change_permission(self):
          return 'change_%s' % self.object_name.lower()
  
      def get_delete_permission(self):
          return 'delete_%s' % self.object_name.lower()
  
      def get_all_related_objects(self, local_only=False, include_hidden=False,
                                  include_proxy_eq=False):
          return [k for k, v in self.get_all_related_objects_with_model(
                  local_only=local_only, include_hidden=include_hidden,
 
</s> remove         return 'change_%s' % self.object_name.lower()
 </s> add         return 'change_%s' % self.model_name </s> remove         return 'add_%s' % self.object_name.lower()
 </s> add         return 'add_%s' % self.model_name </s> remove                                     rel_to._meta.module_name),
 </s> add                                     rel_to._meta.model_name), </s> remove     return '%s_%s' % (action, opts.object_name.lower())
 </s> add     return '%s_%s' % (action, opts.model_name) </s> remove         return self.user.has_perm("%s.%s" % (self.module_name, perm_name))
 </s> add         return self.user.has_perm("%s.%s" % (self.app_label, perm_name))
        return 'delete_%s' % self.model_name
      def get_change_permission(self):
          return 'change_%s' % self.object_name.lower()
  
      def get_delete_permission(self):
        return 'delete_%s' % self.model_name
  
      def get_all_related_objects(self, local_only=False, include_hidden=False,
                                  include_proxy_eq=False):
          return [k for k, v in self.get_all_related_objects_with_model(
                  local_only=local_only, include_hidden=include_hidden,
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