1
0
mirror of https://github.com/django/django.git synced 2025-03-01 12:24:31 +00:00

Corrected used JS libraries in GIS widget docs.

Follow up to 1833eb3f3e3bda5052637f1a51a27fa1b11b6871.
This commit is contained in:
Mariusz Felisiak 2023-01-10 14:25:44 +01:00 committed by GitHub
parent 552384fa97
commit d4b4c1cae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,11 +157,11 @@ Widget classes
This is the default widget used by all GeoDjango form fields. This is the default widget used by all GeoDjango form fields.
``template_name`` is ``gis/openlayers.html``. ``template_name`` is ``gis/openlayers.html``.
``OpenLayersWidget`` and :class:`OSMWidget` use the ``openlayers.js`` file ``OpenLayersWidget`` and :class:`OSMWidget` use the ``ol.js`` file hosted
hosted on the ``cdnjs.cloudflare.com`` content-delivery network. You can on the ``cdn.jsdelivr.net`` content-delivery network. You can subclass
subclass these widgets in order to specify your own version of the these widgets in order to specify your own version of the ``ol.js`` file in
``OpenLayers.js`` file in the ``js`` property of the inner ``Media`` class the ``js`` property of the inner ``Media`` class (see
(see :ref:`assets-as-a-static-definition`). :ref:`assets-as-a-static-definition`).
``OSMWidget`` ``OSMWidget``