From f7889b83b0e62f3dd7e16c0f54b03985de900ffb Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sat, 12 Dec 2015 20:00:46 +0500 Subject: [PATCH] Fixed #25924 -- Removed gis.utils.srs.add_postgis_srs() backwards-compatibility alias. --- django/contrib/gis/utils/__init__.py | 2 +- django/contrib/gis/utils/srs.py | 3 --- docs/releases/1.10.txt | 3 +++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/django/contrib/gis/utils/__init__.py b/django/contrib/gis/utils/__init__.py index 137cd08f92..0a45062956 100644 --- a/django/contrib/gis/utils/__init__.py +++ b/django/contrib/gis/utils/__init__.py @@ -7,7 +7,7 @@ from django.contrib.gis.utils.wkt import precision_wkt # NOQA if HAS_GDAL: from django.contrib.gis.utils.ogrinfo import ogrinfo, sample # NOQA from django.contrib.gis.utils.ogrinspect import mapping, ogrinspect # NOQA - from django.contrib.gis.utils.srs import add_postgis_srs, add_srs_entry # NOQA + from django.contrib.gis.utils.srs import add_srs_entry # NOQA from django.core.exceptions import ImproperlyConfigured try: # LayerMapping requires DJANGO_SETTINGS_MODULE to be set, diff --git a/django/contrib/gis/utils/srs.py b/django/contrib/gis/utils/srs.py index 59ba77c6dd..f1c104fdbb 100644 --- a/django/contrib/gis/utils/srs.py +++ b/django/contrib/gis/utils/srs.py @@ -75,6 +75,3 @@ def add_srs_entry(srs, auth_name='EPSG', auth_srid=None, ref_sys_name=None, SpatialRefSys.objects.using(database).get(srid=srs.srid) except SpatialRefSys.DoesNotExist: SpatialRefSys.objects.using(database).create(**kwargs) - -# Alias is for backwards-compatibility purposes. -add_postgis_srs = add_srs_entry diff --git a/docs/releases/1.10.txt b/docs/releases/1.10.txt index 1f45394642..f8e90bbed7 100644 --- a/docs/releases/1.10.txt +++ b/docs/releases/1.10.txt @@ -354,6 +354,9 @@ Miscellaneous since pre-1.0. If you use it in your project, you can add it to your project's settings. The default value was ``'/accounts/logout/'``. +* The ``add_postgis_srs()`` backwards compatibility alias for + ``django.contrib.gis.utils.add_srs_entry()`` is removed. + .. _deprecated-features-1.10: Features deprecated in 1.10