1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Deprecated django.contrib.gis.geoip2.GeoIP2.open().

This commit is contained in:
Nick Pope
2021-04-05 01:24:52 +01:00
committed by Mariusz Felisiak
parent 464af0975c
commit 07f9f9960c
5 changed files with 24 additions and 4 deletions

View File

@@ -230,4 +230,9 @@ class GeoIP2:
@classmethod
def open(cls, full_path, cache):
warnings.warn(
"GeoIP2.open() is deprecated. Use GeoIP2() instead.",
RemovedInDjango60Warning,
stacklevel=2,
)
return GeoIP2(full_path, cache)