mirror of https://github.com/django/django.git
Fixed #25924 -- Removed gis.utils.srs.add_postgis_srs() backwards-compatibility alias.
This commit is contained in:
parent
d40a38b335
commit
f7889b83b0
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue