text: from django import forms
  from django.contrib.postgres.fields import ArrayField
  from django.forms import SelectMultiple
  
  __all__ = (
      'ArraySelectMultiple',
      'MultipleChoiceArrayField'
  )
  
  
  class ArraySelectMultiple(SelectMultiple):
      def value_omitted_from_data(self, data, files, name):
          return False
  
  
  class MultipleChoiceArrayField(ArrayField):
      def formfield(self, **kwargs):
          defaults = {
              'form_class': forms.TypedMultipleChoiceField,
              'choices': self.base_field.choices,
              'coerce': self.base_field.to_python,
              'widget': ArraySelectMultiple
          }
          defaults.update(kwargs)
  
          return super(ArrayField, self).formfield(**defaults)
  