  
      def test_array_field(self):
          class ArrayFieldModel(models.Model):
              array_field = postgres_fields.ArrayField(base_field=models.CharField())
  
          class TestSerializer(serializers.ModelSerializer):
              class Meta:
                  model = ArrayFieldModel
                  fields = ['array_field', 'array_field_with_blank']
  
 
</s> remove                 fields = ['array_field']
 </s> add                 fields = ['array_field', 'array_field_with_blank'] </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)
            array_field_with_blank = postgres_fields.ArrayField(blank=True, base_field=models.CharField())
  
      def test_array_field(self):
          class ArrayFieldModel(models.Model):
              array_field = postgres_fields.ArrayField(base_field=models.CharField())
            array_field_with_blank = postgres_fields.ArrayField(blank=True, base_field=models.CharField())
  
          class TestSerializer(serializers.ModelSerializer):
              class Meta:
                  model = ArrayFieldModel
                  fields = ['array_field', 'array_field_with_blank']
  
keep keep keep add keep 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