From 96a4b963dfcb84c403e02bdb8daf467fd8c785e0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 21 Jun 2016 17:05:33 +0200 Subject: Add GIS fields in DB --- archaeological_finds/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'archaeological_finds/models.py') 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")) -- cgit v1.2.3