          first_choice = include_blank and blank_choice or []
          queryset = self.model._default_manager.all()
          if limit_to_currently_related:
              queryset = queryset.complex_filter(
                  {'%s__isnull' % self.parent_model._meta.module_name: False})
          lst = [(x._get_pk_val(), smart_text(x)) for x in queryset]
          return first_choice + lst
  
      def get_db_prep_lookup(self, lookup_type, value, connection, prepared=False):
          # Defer to the actual field definition for db prep
 
</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                     attr_name = '%s_ptr' % base._meta.module_name
 </s> add                     attr_name = '%s_ptr' % base._meta.model_name </s> remove         self.module_name, self.verbose_name = None, None
 </s> add         self.model_name, self.verbose_name = None, None </s> remove         self.name = '%s:%s' % (self.opts.app_label, self.opts.module_name)
        self.var_name = self.opts.object_name.lower()
 </s> add         self.name = '%s:%s' % (self.opts.app_label, self.opts.model_name)
        self.var_name = self.opts.model_name </s> remove                                     (opts.app_label, opts.module_name),
 </s> add                                     (opts.app_label, opts.model_name),
                {'%s__isnull' % self.parent_model._meta.model_name: False})
          first_choice = include_blank and blank_choice or []
          queryset = self.model._default_manager.all()
          if limit_to_currently_related:
              queryset = queryset.complex_filter(
                {'%s__isnull' % self.parent_model._meta.model_name: False})
          lst = [(x._get_pk_val(), smart_text(x)) for x in queryset]
          return first_choice + lst
  
      def get_db_prep_lookup(self, lookup_type, value, connection, prepared=False):
          # Defer to the actual field definition for db prep
keep keep keep keep replace keep keep keep keep keep
 Fixed #19689 -- Renamed `Model._meta.module_name` to `model_name`. 
django/db/models/related.py