  from django.test import TestCase
  from django.utils import six
  
  from rest_framework import serializers
  from rest_framework.compat import unicode_repr
  
  
  def dedent(blocktext):
      return '\n'.join([line[12:] for line in blocktext.splitlines()[1:-1]])
  
 
</s> remove     HiddenField, IPAddressField, ImageField, IntegerField, JSONField, ListField,
    ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField, RegexField,
    SerializerMethodField, SlugField, TimeField, URLField, UUIDField,
 </s> add     HiddenField, HStoreField, IPAddressField, ImageField, IntegerField, JSONField,
    ListField, ModelField, MultipleChoiceField, NullBooleanField, ReadOnlyField,
    RegexField, SerializerMethodField, SlugField, TimeField, URLField, UUIDField, </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
from rest_framework.compat import postgres_fields, unicode_repr
  from django.test import TestCase
  from django.utils import six
  
  from rest_framework import serializers
from rest_framework.compat import postgres_fields, unicode_repr
  
  
  def dedent(blocktext):
      return '\n'.join([line[12:] for line in blocktext.splitlines()[1:-1]])
  
keep keep keep keep 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 
tests/test_model_serializer.py