diff options
| author | Chris Adkins <c23gooey@gmail.com> | 2019-05-07 21:31:44 +1000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-05-07 13:31:44 +0200 |
| commit | 705ef6cfebe000df1971e25ee269c2e26bac18f4 (patch) | |
| tree | 09a6c6225f12d073b1ad9eb9fa6688b854727d08 /django | |
| parent | 59de9494e7513de29bc71bd0b27445daff25a4b3 (diff) | |
Fixed #30447 -- Added 'is_in_european_union' in GeoIP2.city() dict.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/gis/geoip2/resources.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/gis/geoip2/resources.py b/django/contrib/gis/geoip2/resources.py index 3de3346194..08923b0998 100644 --- a/django/contrib/gis/geoip2/resources.py +++ b/django/contrib/gis/geoip2/resources.py @@ -6,6 +6,7 @@ def City(response): 'country_code': response.country.iso_code, 'country_name': response.country.name, 'dma_code': response.location.metro_code, + 'is_in_european_union': response.country.is_in_european_union, 'latitude': response.location.latitude, 'longitude': response.location.longitude, 'postal_code': response.postal.code, |
