diff --git a/django/contrib/gis/forms/widgets.py b/django/contrib/gis/forms/widgets.py index 0cf27427c2..364d55b7e0 100644 --- a/django/contrib/gis/forms/widgets.py +++ b/django/contrib/gis/forms/widgets.py @@ -76,6 +76,7 @@ class BaseGeometryWidget(Widget): class OpenLayersWidget(BaseGeometryWidget): template_name = 'gis/openlayers.html' + map_srid = 3857 class Media: css = { @@ -100,7 +101,6 @@ class OSMWidget(OpenLayersWidget): template_name = 'gis/openlayers-osm.html' default_lon = 5 default_lat = 47 - map_srid = 3857 def __init__(self, attrs=None): super().__init__() diff --git a/tests/gis_tests/test_geoforms.py b/tests/gis_tests/test_geoforms.py index 6fe0996721..eaa19ac3ef 100644 --- a/tests/gis_tests/test_geoforms.py +++ b/tests/gis_tests/test_geoforms.py @@ -116,7 +116,7 @@ class GeometryFieldTest(SimpleTestCase): # ordering of the rendered dictionary. pt1_serialized = re.search(r'