              if isinstance(source, models.base.ModelBase):
                  for field in source._meta.fields:
                      if isinstance(field, GeometryField):
                          kml_sources.append((source._meta.app_label,
                                              source._meta.module_name,
                                              field.name))
              elif isinstance(source, (list, tuple)):
                  if len(source) != 3: 
                      raise ValueError('Must specify a 3-tuple of (app_label, module_name, field_name).')
                  kml_sources.append(source)
 
</s> remove                 raise AlreadyModerated("The model '%s' is already being moderated" % model._meta.module_name)
 </s> add                 raise AlreadyModerated("The model '%s' is already being moderated" % model._meta.model_name) </s> remove                     attr_name = '%s_ptr' % base._meta.module_name
 </s> add                     attr_name = '%s_ptr' % base._meta.model_name </s> remove         if m._meta.object_name.lower() == model_name:
 </s> add         if m._meta.model_name == model_name: </s> remove                 self.object._meta.object_name.lower(),
 </s> add                 self.object._meta.model_name, </s> remove                     info = (app_label, model._meta.module_name)
 </s> add                     info = (app_label, model._meta.model_name)
                                            source._meta.model_name,
              if isinstance(source, models.base.ModelBase):
                  for field in source._meta.fields:
                      if isinstance(field, GeometryField):
                          kml_sources.append((source._meta.app_label,
                                            source._meta.model_name,
                                              field.name))
              elif isinstance(source, (list, tuple)):
                  if len(source) != 3: 
                      raise ValueError('Must specify a 3-tuple of (app_label, module_name, field_name).')
                  kml_sources.append(source)
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/contrib/gis/sitemaps/kml.py