mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Deprecated django.contrib.gis.geoip2.GeoIP2.coords().
The `ordering` argument is undocumented and of limited use, so this is effectively the same as `GeoIP2.lon_lat()`.
This commit is contained in:
		
				
					committed by
					
						 Mariusz Felisiak
						Mariusz Felisiak
					
				
			
			
				
	
			
			
			
						parent
						
							1311f82a6a
						
					
				
				
					commit
					b925fefd7d
				
			| @@ -64,6 +64,8 @@ details on these changes. | ||||
| * The undocumented ``django.utils.itercompat.is_iterable()`` function and the | ||||
|   ``django.utils.itercompat`` module will be removed. | ||||
|  | ||||
| * The ``django.contrib.gis.geoip2.GeoIP2.coords()`` method will be removed. | ||||
|  | ||||
| .. _deprecation-removed-in-5.1: | ||||
|  | ||||
| 5.1 | ||||
|   | ||||
| @@ -133,6 +133,10 @@ Coordinate Retrieval | ||||
|  | ||||
| Returns a coordinate tuple of (longitude, latitude). | ||||
|  | ||||
| .. deprecated:: 5.1 | ||||
|  | ||||
|     Use :meth:`.GeoIP2.lon_lat` instead. | ||||
|  | ||||
| .. method:: GeoIP2.lon_lat(query) | ||||
|  | ||||
| Returns a coordinate tuple of (longitude, latitude). | ||||
|   | ||||
| @@ -307,6 +307,9 @@ Miscellaneous | ||||
|   ``django.utils.itercompat`` module are deprecated. Use | ||||
|   ``isinstance(..., collections.abc.Iterable)`` instead. | ||||
|  | ||||
| * The ``django.contrib.gis.geoip2.GeoIP2.coords()`` method is deprecated. Use | ||||
|   ``django.contrib.gis.geoip2.GeoIP2.lon_lat()`` instead. | ||||
|  | ||||
| Features removed in 5.1 | ||||
| ======================= | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user