[Django] #26266: Cannot output primary keys with the geojson serializer

8 views
Skip to first unread message

Django

unread,
Feb 23, 2016, 1:48:19 PM2/23/16
to django-...@googlegroups.com
#26266: Cannot output primary keys with the geojson serializer
------------------------------------+------------------------
Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------+------------------------
The primary key field is currently excluded from the serialized fields
because it appears elsewhere (first level) with standard serializers.

The output structure is different for the GeoJSON serializer, so the
primary key should be present in the `properties` member in the structure
of each feature.

--
Ticket URL: <https://code.djangoproject.com/ticket/26266>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 23, 2016, 2:00:28 PM2/23/16
to django-...@googlegroups.com
#26266: Cannot output primary keys with the geojson serializer
-------------------------+------------------------------------

Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+------------------------------------
Changes (by claudep):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/6183 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/26266#comment:1>

Django

unread,
Feb 23, 2016, 6:04:01 PM2/23/16
to django-...@googlegroups.com
#26266: Cannot output primary keys with the geojson serializer
-------------------------+---------------------------------------------

Reporter: claudep | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+---------------------------------------------
Changes (by timgraham):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/26266#comment:2>

Django

unread,
Feb 24, 2016, 10:11:44 AM2/24/16
to django-...@googlegroups.com
#26266: Cannot output primary keys with the geojson serializer
-------------------------+---------------------------------------------
Reporter: claudep | Owner: nobody
Type: Bug | Status: closed
Component: GIS | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------+---------------------------------------------
Changes (by Claude Paroz <claude@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"c5517b9e7439e542b381a0054bbdab9b5d2bc34b" c5517b9e]:
{{{
#!CommitTicketReference repository=""
revision="c5517b9e7439e542b381a0054bbdab9b5d2bc34b"
Fixed #26266 -- Output the primary key in the GeoJSON serializer
properties

Thanks Tim Graham for the review.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26266#comment:3>

Reply all
Reply to author
Forward
0 new messages