summaryrefslogtreecommitdiff
path: root/archaeological_finds/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_finds/models.py
parent56884f2f25fa1414ad37f49ed6376ead14c9d8a1 (diff)
downloadIshtar-46698118b56b698b6958fb77dd9daa948d09ba65.tar.bz2
Ishtar-46698118b56b698b6958fb77dd9daa948d09ba65.zip
Add GIS fields in DB
Diffstat (limited to 'archaeological_finds/models.py')
-rw-r--r--archaeological_finds/models.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index adfa67394..5c970ba6b 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -119,7 +119,10 @@ class BaseFind(BaseHistorizedItem, OwnPerms):
batch = models.CharField(_(u"Batch/object"), max_length=1, default="U",
choices=IS_ISOLATED_CHOICES)
index = models.IntegerField(u"Index", default=0)
- material_index = models.IntegerField(u"Material index", default=0)
+ material_index = models.IntegerField(_(u"Material index"), default=0)
+ point = models.PointField(_(u"Point"), blank=True, null=True, dim=3)
+ line = models.LineStringField(_(u"Line"), blank=True, null=True)
+ polygon = models.PolygonField(_(u"Polygon"), blank=True, null=True)
cache_short_id = models.TextField(
_(u"Short ID"), blank=True, null=True,
help_text=_(u"Cached value - do not edit"))