      def test_callable_field_default(self):
          class PublicationDefaultsForm(forms.ModelForm):
              class Meta:
                  model = PublicationDefaults
                  fields = '__all__'
  
          self.maxDiff = 2000
          form = PublicationDefaultsForm()
          today_str = str(datetime.date.today())
          self.assertHTMLEqual(
 
</s> remove         form = DerivedBookForm({'title': 'Other', 'author': self.writer.pk, 'isbn': isbn})
 </s> add         form = DerivedBookForm({
            'title': 'Other', 'author': self.writer.pk, 'isbn': isbn,
            'suffix1': '1', 'suffix2': '2',
        })
                fields = ('title', 'date_published', 'mode', 'category')
      def test_callable_field_default(self):
          class PublicationDefaultsForm(forms.ModelForm):
              class Meta:
                  model = PublicationDefaults
                fields = ('title', 'date_published', 'mode', 'category')
  
          self.maxDiff = 2000
          form = PublicationDefaultsForm()
          today_str = str(datetime.date.today())
          self.assertHTMLEqual(
keep keep keep keep replace keep keep keep keep keep
 Fixed #27039 -- Fixed empty data fallback to model field default in model forms. 
tests/model_forms/tests.py