For country responses, we should return `continent_code`,
`continent_name`, and `is_in_european_union`'''^1^'''.
For city responses, we should return `accuracy_radius` and `region_name`.
We should also rename `region` to `region_code` and `dma_code`'''^2^''' to
`metro_code`. ''(In my initial patch I've kept the old names around for
backward compatibility, but perhaps we should deprecate those keys?)''
----
'''^1^''' ''This was already added for city responses in #30447.''
'''^2^''' ''IIRC this is an old name for `metro_code` that was used in the
old v1 of the GeoIP library...''
--
Ticket URL: <https://code.djangoproject.com/ticket/35092>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/17706 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/35092#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/35092#comment:2>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/35092#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f50184a84b885f4474d5030af968195219a360b9" f50184a8]:
{{{
#!CommitTicketReference repository=""
revision="f50184a84b885f4474d5030af968195219a360b9"
Fixed #35092 -- Exposed extra fields for GeoIP2.country() and
GeoIP2.city() responses.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35092#comment:4>