From 07f9f9960c477c7f60a5f3f243a0f404a56b1121 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 5 Apr 2021 01:24:52 +0100 Subject: Deprecated django.contrib.gis.geoip2.GeoIP2.open(). --- docs/internals/deprecation.txt | 2 ++ docs/ref/contrib/gis/geoip2.txt | 4 ++++ docs/releases/5.1.txt | 3 +++ 3 files changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 0067c8fbf5..a1b00c364a 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -66,6 +66,8 @@ details on these changes. * The ``django.contrib.gis.geoip2.GeoIP2.coords()`` method will be removed. +* The ``django.contrib.gis.geoip2.GeoIP2.open()`` method will be removed. + .. _deprecation-removed-in-5.1: 5.1 diff --git a/docs/ref/contrib/gis/geoip2.txt b/docs/ref/contrib/gis/geoip2.txt index dc735ff13e..aca31bf78b 100644 --- a/docs/ref/contrib/gis/geoip2.txt +++ b/docs/ref/contrib/gis/geoip2.txt @@ -100,6 +100,10 @@ Instantiating This classmethod instantiates the GeoIP object from the given database path and given cache setting. +.. deprecated:: 5.1 + + Use the :class:`GeoIP2()` constructor instead. + Querying -------- diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 33b4f1c491..395acb5a89 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -310,6 +310,9 @@ Miscellaneous * The ``django.contrib.gis.geoip2.GeoIP2.coords()`` method is deprecated. Use ``django.contrib.gis.geoip2.GeoIP2.lon_lat()`` instead. +* The ``django.contrib.gis.geoip2.GeoIP2.open()`` method is deprecated. Use the + :class:`~django.contrib.gis.geoip2.GeoIP2` constructor instead. + Features removed in 5.1 ======================= -- cgit v1.3