﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26138	GeoJSON Serializer doesn't include geometry_field if it's not in fields	Bernd Schlapsi	Claude Paroz	"The example in the documentation for GeoJSON Serializer don't work as described. 
https://docs.djangoproject.com/es/1.9/ref/contrib/gis/serializers/

The tuple for the fields option is missing the 'point' field
{{{
from django.core.serializers import serialize
from my_app.models import City

serialize('geojson', City.objects.all(),
          geometry_field='point',
          fields=('name', 'point'))
}}}

If you use the example without the 'point' in the fields tuple the returning geometry property is null
{{{
{
  'type': 'FeatureCollection',
  'crs': {
    'type': 'name',
    'properties': {'name': 'EPSG:4326'}
  },
  'features': [
    {
      'type': 'Feature',
      'geometry': null,
      'properties': {
        'name': 'Chicago'
      }
    }
  ]
}
}}}

I think there should be a test-case in 
https://github.com/django/django/blob/master/tests/gis_tests/geoapp/test_serializers.py
with a call to serialize used with both parameters (geometry_field and fields)"	Cleanup/optimization	closed	GIS	1.9	Normal	fixed			Ready for checkin	1	0	0	0	0	0
