<s> from django . apps import AppConfig as BaseConfig <EOL> class AppConfig ( BaseConfig ) : <EOL> name = '<STR_LIT>' <EOL> def ready ( self ) : <EOL> """<STR_LIT>""" <EOL> from django . contrib . gis . db import models <EOL> from rest_framework . serializers import ModelSerializer <EOL> from . fields import GeometryField <EOL> try : <EOL> field_mapping = ModelSerializer . _field_mapping . mapping <EOL> except AttributeError : <EOL> field_mapping = ModelSerializer . serializer_field_mapping <EOL> field_mapping . update ( { <EOL> models . GeometryField : GeometryField , <EOL> models . PointField : GeometryField , <EOL> models . LineStringField : GeometryField , <EOL> models . PolygonField : GeometryField , <EOL> models . MultiPointField : GeometryField , <EOL> models . MultiLineStringField : GeometryField , <EOL> models . MultiPolygonField : GeometryField , <EOL> models . GeometryCollectionField : GeometryField <EOL> } ) </s>
