diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 17:05:33 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-06-21 17:06:06 +0200 |
commit | 96a4b963dfcb84c403e02bdb8daf467fd8c785e0 (patch) | |
tree | efcebc7c72a73c43c0b18e6beb7025cd382c8d73 /archaeological_context_records/models.py | |
parent | 1068e9803ff280c2d3d52d678ad7b3fdbb4e2aa7 (diff) | |
download | Ishtar-96a4b963dfcb84c403e02bdb8daf467fd8c785e0.tar.bz2 Ishtar-96a4b963dfcb84c403e02bdb8daf467fd8c785e0.zip |
Add GIS fields in DB
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index ddd9c8609..a2c94d55b 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -165,6 +165,8 @@ class ContextRecord(BaseHistorizedItem, OwnPerms, ShortMenuItem): verbose_name=_(u"Activity"),) related_context_records = models.ManyToManyField( 'ContextRecord', through='RecordRelations', blank=True, null=True) + point = models.PointField(_(u"Point"), blank=True, null=True, dim=3) + polygon = models.PolygonField(_(u"Polygon"), blank=True, null=True) history = HistoricalRecords() class Meta: |