  # serializer fields more explicit.
  from rest_framework.fields import (  # NOQA # isort:skip
      BooleanField, CharField, ChoiceField, DateField, DateTimeField, DecimalField,
      DictField, DurationField, EmailField, Field, FileField, FilePathField, FloatField,
      HiddenField, IPAddressField, ImageField, IntegerField, JSONField, ListField,
      ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField, RegexField,
      SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
  )
  from rest_framework.relations import (  # NOQA # isort:skip
      HyperlinkedIdentityField, HyperlinkedRelatedField, ManyRelatedField,
      PrimaryKeyRelatedField, RelatedField, SlugRelatedField, StringRelatedField,
  )
 
</s> remove from rest_framework.compat import unicode_repr
 </s> add from rest_framework.compat import postgres_fields, unicode_repr </s> remove     class CharMappingField(DictField):
        child = CharField(allow_blank=True)

    ModelSerializer.serializer_field_mapping[postgres_fields.HStoreField] = CharMappingField
 </s> add     ModelSerializer.serializer_field_mapping[postgres_fields.HStoreField] = HStoreField
    HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField,
    ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField,
    RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
  # serializer fields more explicit.
  from rest_framework.fields import (  # NOQA # isort:skip
      BooleanField, CharField, ChoiceField, DateField, DateTimeField, DecimalField,
      DictField, DurationField, EmailField, Field, FileField, FilePathField, FloatField,
    HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField,
    ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField,
    RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
    HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField,
    ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField,
    RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
    HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField,
    ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField,
    RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
  )
  from rest_framework.relations import (  # NOQA # isort:skip
      HyperlinkedIdentityField, HyperlinkedRelatedField, ManyRelatedField,
      PrimaryKeyRelatedField, RelatedField, SlugRelatedField, StringRelatedField,
  )
keep keep keep keep replace replace replace keep keep keep keep keep
 Add HStoreField, postgres fields tests (#5654)

* Test postgres field mapping

* Add HStoreField

* Ensure 'HStoreField' child is a 'CharField'

* Add HStoreField docs 
rest_framework/serializers.py