diff options
| author | Claude Paroz <claude@2xlibre.net> | 2022-08-12 12:18:51 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-08-12 13:26:35 +0200 |
| commit | 4fcba800b84fc5fb53cdc70e4bea37ec958516fd (patch) | |
| tree | 4ca13bb1947503e1a1202a0513deda760bc8090e /docs/ref | |
| parent | 8c3046daade8d9b019928f96e53629b03060fe73 (diff) | |
Fixed #33924 -- Deprecated BaseGeometryWidget.map_height/map_width attributes.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/gis/forms-api.txt | 7 |
1 files changed, 6 insertions, 1 deletions
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 -------------- |
