  
          class TestSerializer(serializers.ModelSerializer):
              class Meta:
                  model = ArrayFieldModel
                  fields = ['array_field']
  
          expected = dedent("""
              TestSerializer():
                  array_field = ListField(child=CharField(label='Array field', validators=[<django.core.validators.MaxLengthValidator object>]))
          """)
 
</s> remove                 array_field = ListField(child=CharField(label='Array field', validators=[<django.core.validators.MaxLengthValidator object>]))
 </s> add                 array_field = ListField(allow_empty=False, child=CharField(label='Array field', validators=[<django.core.validators.MaxLengthValidator object>]))
                array_field_with_blank = ListField(child=CharField(label='Array field with blank', validators=[<django.core.validators.MaxLengthValidator object>]), required=False)
                fields = ['array_field', 'array_field_with_blank']
  
          class TestSerializer(serializers.ModelSerializer):
              class Meta:
                  model = ArrayFieldModel
                fields = ['array_field', 'array_field_with_blank']
  
          expected = dedent("""
              TestSerializer():
                  array_field = ListField(child=CharField(label='Array field', validators=[<django.core.validators.MaxLengthValidator object>]))
          """)
keep keep keep keep replace keep keep keep keep keep
 Fix ArrayField kwargs mapping for blank/allow_empty (#6758)

Postgres ArrayField blank=True should allow empty Lists in Serializer 
tests/test_model_serializer.py