Fixed #25924 -- Removed gis.utils.srs.add_postgis_srs() backwards-compatibility alias.

This commit is contained in:
Sergey Fedoseev 2015-12-12 20:00:46 +05:00 committed by Tim Graham
parent d40a38b335
commit f7889b83b0
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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

View File

@ -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