mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
gis: changed fields.GeometryField to implement get_internal_type.
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@4675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5edcbdc826
commit
68309c8a33
@ -26,6 +26,9 @@ class GeometryField(Field):
|
|||||||
_geom = 'GEOMETRY'
|
_geom = 'GEOMETRY'
|
||||||
_srid = 4326
|
_srid = 4326
|
||||||
|
|
||||||
|
def get_internal_type(self):
|
||||||
|
return "NoField"
|
||||||
|
|
||||||
def _post_create_sql(self, *args, **kwargs):
|
def _post_create_sql(self, *args, **kwargs):
|
||||||
"""Returns SQL that will be executed after the model has been created. Geometry
|
"""Returns SQL that will be executed after the model has been created. Geometry
|
||||||
columns must be added after creation with the PostGIS AddGeometryColumn() function."""
|
columns must be added after creation with the PostGIS AddGeometryColumn() function."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user