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:
committed by
Mariusz Felisiak
parent
464af0975c
commit
07f9f9960c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user