summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt3
-rw-r--r--docs/ref/contrib/gis/forms-api.txt7
-rw-r--r--docs/releases/4.2.txt3
3 files changed, 12 insertions, 1 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index ff10c9de5a..a5b76c13ab 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -32,6 +32,9 @@ details on these changes.
* The ``django.contrib.postgres.fields.CIText`` mixin will be removed.
+* The ``map_width`` and ``map_height`` attributes of ``BaseGeometryWidget``
+ will be removed.
+
.. _deprecation-removed-in-5.0:
5.0
diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt
index 15369ed0e2..0d7651f20e 100644
--- a/docs/ref/contrib/gis/forms-api.txt
+++ b/docs/ref/contrib/gis/forms-api.txt
@@ -106,6 +106,11 @@ from other Django widget attributes.
Height and width of the widget map (default is 400x600).
+ .. deprecated:: 4.2
+
+ ``map_height`` and ``map_width`` attributes are deprecated, use CSS to
+ size map widgets instead.
+
.. attribute:: BaseGeometryWidget.map_srid
SRID code used by the map (default is 4326).
@@ -131,7 +136,7 @@ widget. For example::
class MyGeoForm(forms.Form):
point = forms.PointField(widget=
- forms.OSMWidget(attrs={'map_width': 800, 'map_height': 500}))
+ forms.OSMWidget(attrs={'display_raw': True}))
Widget classes
--------------
diff --git a/docs/releases/4.2.txt b/docs/releases/4.2.txt
index 6760848976..cb64750009 100644
--- a/docs/releases/4.2.txt
+++ b/docs/releases/4.2.txt
@@ -369,3 +369,6 @@ Miscellaneous
collation.
* ``django.contrib.postgres.fields.CIText`` mixin is deprecated.
+
+* The ``map_height`` and ``map_width`` attributes of ``BaseGeometryWidget`` are
+ deprecated, use CSS to size map widgets instead.