Skip to content

Commit

Permalink
Merge 4568ecd into 0bcf543
Browse files Browse the repository at this point in the history
  • Loading branch information
manelclos committed Apr 26, 2018
2 parents 0bcf543 + 4568ecd commit f12252c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djgeojson/views.py
Expand Up @@ -54,6 +54,8 @@ class GeoJSONResponseMixin(object):

use_natural_keys = False

with_modelname = True

def render_to_response(self, context, **response_kwargs):
"""
Returns a JSON response, transforming 'context' to make the payload.
Expand All @@ -70,7 +72,8 @@ def render_to_response(self, context, **response_kwargs):
force2d=self.force2d,
bbox=self.bbox,
bbox_auto=self.bbox_auto,
use_natural_keys=self.use_natural_keys)
use_natural_keys=self.use_natural_keys,
with_modelname=self.with_modelname)
serializer.serialize(queryset, stream=response, ensure_ascii=False,
**options)
return response
Expand Down

0 comments on commit f12252c

Please sign in to comment.