Commits

Andrew Godwin committed b7716bf

Add introspection support for GeoDjango fields

  • Participants
  • Parent commits 869589e

Comments (0)

Files changed (1)

File south/modelsinspector.py

 from django.utils.functional import Promise
 from django.contrib.contenttypes import generic
 from django.utils.datastructures import SortedDict
+from django.contrib.gis.db.models.fields import GeometryField
 
 NOISY = True
 
             "blank": ["blank", {"default": True}],
         },
     ),
+    (
+        (GeometryField, ),
+        [],
+        {
+            "srid": ["srid", {"default": 4326}],
+            "spatial_index": ["spatial_index", {"default": True}],
+            "dim": ["dim", {"default": 2}],
+        },
+    ),
 ]
 
 # Similar, but for Meta, so just the inner level (kwds).