From cc56c22a24ef717cc3111e92ca146136fa518d55 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Sun, 7 Jan 2024 07:15:40 +0000 Subject: Fixed #35091 -- Allowed GeoIP2 querying using IPv4Address/IPv6Address. --- docs/ref/contrib/gis/geoip2.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/gis/geoip2.txt b/docs/ref/contrib/gis/geoip2.txt index aca31bf78b..1d27e39657 100644 --- a/docs/ref/contrib/gis/geoip2.txt +++ b/docs/ref/contrib/gis/geoip2.txt @@ -107,10 +107,11 @@ and given cache setting. Querying -------- -All the following querying routines may take either a string IP address -or a fully qualified domain name (FQDN). For example, both -``'205.186.163.125'`` and ``'djangoproject.com'`` would be valid query -parameters. +All the following querying routines may take an instance of +:class:`~ipaddress.IPv4Address` or :class:`~ipaddress.IPv6Address`, a string IP +address, or a fully qualified domain name (FQDN). For example, +``IPv4Address("205.186.163.125")``, ``"205.186.163.125"``, and +``"djangoproject.com"`` would all be valid query parameters. .. method:: GeoIP2.city(query) -- cgit v1.3