summaryrefslogtreecommitdiff
path: root/docs/ref/contrib/gis/tutorial.txt
diff options
context:
space:
mode:
authorBrendan Hayward <brendanhayward85@gmail.com>2015-05-08 22:52:15 +0500
committerTim Graham <timograham@gmail.com>2015-08-11 10:14:44 -0400
commitc9fb4f3c45b668c9a32f9ecdfe404566657df88e (patch)
tree7e57549574d4407fcf77d672aed7afa9af889276 /docs/ref/contrib/gis/tutorial.txt
parent7fa1dd8a80795d7573fe650014c5d23af7557bc7 (diff)
Fixed #25205 -- Removed doc references to deprecated GeoManager class.
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
-rw-r--r--docs/ref/contrib/gis/tutorial.txt11
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index f869e97729..a41b5ed042 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -238,20 +238,14 @@ model to represent this data::
lon = models.FloatField()
lat = models.FloatField()
- # GeoDjango-specific: a geometry field (MultiPolygonField), and
- # overriding the default manager with a GeoManager instance.
+ # GeoDjango-specific: a geometry field (MultiPolygonField)
mpoly = models.MultiPolygonField()
- objects = models.GeoManager()
# Returns the string representation of the model.
def __str__(self): # __unicode__ on Python 2
return self.name
-Please note two important things:
-
-1. The ``models`` module is imported from ``django.contrib.gis.db``.
-2. You must override the model's default manager with
- :class:`~django.contrib.gis.db.models.GeoManager` to perform spatial queries.
+Note that the ``models`` module is imported from ``django.contrib.gis.db``.
The default spatial reference system for geometry fields is WGS84 (meaning
the `SRID`__ is 4326) -- in other words, the field coordinates are in
@@ -579,7 +573,6 @@ directly into the ``models.py`` of a GeoDjango application::
lon = models.FloatField()
lat = models.FloatField()
geom = models.MultiPolygonField(srid=4326)
- objects = models.GeoManager()
# Auto-generated `LayerMapping` dictionary for WorldBorder model
worldborders_mapping = {