Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Now take advantage of new argument accepted by `AddGeometryColumn` in…

… SpatiaLite 2.3 that allows geometry columns to specified as `NOT NULL`.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1dc72fe8765c1d39e42f0cca997075a489e3395c 1 parent bbe3749
@jbronn jbronn authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/gis/db/backend/spatialite/field.py
View
5 django/contrib/gis/db/backend/spatialite/field.py
@@ -25,8 +25,9 @@ def _add_geom(self, style, db_table):
style.SQL_FIELD(gqn(self.column)) + ', ' +
style.SQL_FIELD(str(self.srid)) + ', ' +
style.SQL_COLTYPE(gqn(self.geom_type)) + ', ' +
- style.SQL_KEYWORD(str(self.dim)) + ');')
-
+ style.SQL_KEYWORD(str(self.dim)) + ', ' +
+ style.SQL_KEYWORD(str(int(not self.null))) +
+ ');')
return sql
def _geom_index(self, style, db_table):
Please sign in to comment.
Something went wrong with that request. Please try again.