diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-10 13:01:14 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-17 11:49:15 +0100 |
| commit | 4982958ec0c359908566fc1f34ef71297ea4337d (patch) | |
| tree | 01712de4c807ff259defbd8daa5421568d17142c /docs | |
| parent | 2fad1632571af551d6065d7eced93ffe93a8a945 (diff) | |
Refs #27674 -- Removed GeoModelAdmin and OSMGeoAdmin per deprecation timeline.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/gis/admin.txt | 69 | ||||
| -rw-r--r-- | docs/releases/5.0.txt | 3 |
2 files changed, 3 insertions, 69 deletions
diff --git a/docs/ref/contrib/gis/admin.txt b/docs/ref/contrib/gis/admin.txt index 8446291ae0..9954f69f90 100644 --- a/docs/ref/contrib/gis/admin.txt +++ b/docs/ref/contrib/gis/admin.txt @@ -20,72 +20,3 @@ GeoDjango's admin site The keyword arguments that would be passed to the :attr:`gis_widget`. Defaults to an empty dictionary. - -``GeoModelAdmin`` -================= - -.. class:: GeoModelAdmin - - .. attribute:: default_lon - - The default center longitude. - - .. attribute:: default_lat - - The default center latitude. - - .. attribute:: default_zoom - - The default zoom level to use. Defaults to 4. - - .. attribute:: extra_js - - Sequence of URLs to any extra JavaScript to include. - - .. attribute:: map_template - - Override the template used to generate the JavaScript slippy map. - Default is ``'gis/admin/openlayers.html'``. - - .. attribute:: map_width - - Width of the map, in pixels. Defaults to 600. - - .. attribute:: map_height - - Height of the map, in pixels. Defaults to 400. - - .. attribute:: openlayers_url - - Link to the URL of the OpenLayers JavaScript. Defaults to - ``'https://cdnjs.cloudflare.com/ajax/libs/openlayers/2.13.1/OpenLayers.js'``. - - .. attribute:: modifiable - - Defaults to ``True``. When set to ``False``, disables editing of - existing geometry fields in the admin. - - .. note:: - - This is different from adding the geometry field to - :attr:`~django.contrib.admin.ModelAdmin.readonly_fields`, - which will only display the WKT of the geometry. Setting - ``modifiable=False``, actually displays the geometry in a map, - but disables the ability to edit its vertices. - - .. deprecated:: 4.0 - - This class is deprecated. Use :class:`~django.contrib.admin.ModelAdmin` - instead. - -``OSMGeoAdmin`` -=============== - -.. class:: OSMGeoAdmin - - A subclass of :class:`GeoModelAdmin` that uses a Spherical Mercator projection - with `OpenStreetMap <https://www.openstreetmap.org/>`_ street data tiles. - - .. deprecated:: 4.0 - - This class is deprecated. Use :class:`GISModelAdmin` instead. diff --git a/docs/releases/5.0.txt b/docs/releases/5.0.txt index 2a0918b287..c1d6f25088 100644 --- a/docs/releases/5.0.txt +++ b/docs/releases/5.0.txt @@ -294,6 +294,9 @@ to remove usage of these features. * ``django.db.models.functions.TruncQuarter()`` * ``django.db.models.functions.TruncYear()`` +* The ``django.contrib.gis.admin.GeoModelAdmin`` and ``OSMGeoAdmin`` classes + are removed. + See :ref:`deprecated-features-4.1` for details on these changes, including how to remove usage of these features. |
