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 | 46698118b56b698b6958fb77dd9daa948d09ba65 (patch) | |
tree | efcebc7c72a73c43c0b18e6beb7025cd382c8d73 /archaeological_context_records/models.py | |
parent | 56884f2f25fa1414ad37f49ed6376ead14c9d8a1 (diff) | |
download | Ishtar-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.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: |