      if field.rel.to == RECURSIVE_RELATIONSHIP_CONSTANT or to == klass._meta.object_name:
          from_ = 'from_%s' % to.lower()
          to = 'to_%s' % to.lower()
      else:
          from_ = klass._meta.object_name.lower()
          to = to.lower()
      meta = type('Meta', (object,), {
          'db_table': field._get_m2m_db_table(klass._meta),
          'managed': managed,
          'auto_created': klass,
 
</s> remove             to_name = to._meta.object_name.lower()
 </s> add             to_name = to._meta.model_name </s> remove         if m._meta.object_name.lower() == model_name:
 </s> add         if m._meta.model_name == model_name: </s> remove                 {'%s__isnull' % self.parent_model._meta.module_name: False})
 </s> add                 {'%s__isnull' % self.parent_model._meta.model_name: False}) </s> remove                                     (opts.app_label, opts.module_name),
 </s> add                                     (opts.app_label, opts.model_name), </s> remove                     info = (app_label, model._meta.module_name)
 </s> add                     info = (app_label, model._meta.model_name)
        from_ = klass._meta.model_name
      if field.rel.to == RECURSIVE_RELATIONSHIP_CONSTANT or to == klass._meta.object_name:
          from_ = 'from_%s' % to.lower()
          to = 'to_%s' % to.lower()
      else:
        from_ = klass._meta.model_name
          to = to.lower()
      meta = type('Meta', (object,), {
          'db_table': field._get_m2m_db_table(klass._meta),
          'managed': managed,
          'auto_created': klass,
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