mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #11810 -- Fixed typo and errors that prevented modifiable
from working in the geographic admin. Thanks to Rob Coup for the bug report. Refs #12504.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
2cd48bac7e
commit
1ad9c36fb8
3 changed files with 39 additions and 23 deletions
|
@ -47,11 +47,26 @@ GeoDjango's admin site
|
|||
Link to the URL of the OpenLayers JavaScript. Defaults to
|
||||
``'http://openlayers.org/api/2.8/OpenLayers.js'``.
|
||||
|
||||
|
||||
.. attribute:: modifiable
|
||||
|
||||
Defaults to ``False``. When set to to ``True``, 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.
|
||||
|
||||
``OSMGeoAdmin``
|
||||
===============
|
||||
|
||||
.. class:: OSMGeoAdmin
|
||||
|
||||
A subclass of :class:`GeoModelAdmin` that uses a spherical mercator projection
|
||||
with OpenStreetMap street data tiles. See the :ref:`OSMGeoAdmin introduction <osmgeoadmin-intro>`
|
||||
with `OpenStreetMap <http://openstreetmap.org/>`_ street data tiles.
|
||||
See the :ref:`OSMGeoAdmin introduction <osmgeoadmin-intro>`
|
||||
in the tutorial for a usage example.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue