summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
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
commit46698118b56b698b6958fb77dd9daa948d09ba65 (patch)
treeefcebc7c72a73c43c0b18e6beb7025cd382c8d73 /archaeological_context_records/models.py
parent56884f2f25fa1414ad37f49ed6376ead14c9d8a1 (diff)
downloadIshtar-46698118b56b698b6958fb77dd9daa948d09ba65.tar.bz2
Ishtar-46698118b56b698b6958fb77dd9daa948d09ba65.zip
Add GIS fields in DB
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py2
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: