You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
397 B

  1. from django.apps import AppConfig
  2. from django.core import serializers
  3. from django.utils.translation import ugettext_lazy as _
  4. class GISConfig(AppConfig):
  5. name = 'django.contrib.gis'
  6. verbose_name = _("GIS")
  7. def ready(self):
  8. if 'geojson' not in serializers.BUILTIN_SERIALIZERS:
  9. serializers.BUILTIN_SERIALIZERS['geojson'] = "django.contrib.gis.serializers.geojson"