summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-26 18:29:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-10-26 18:29:00 +0200
commit9c780920b2773ac92e46ec07e29a3e489c8357f7 (patch)
tree0b6a033a9446f485bf825d54d26518adc2e206e4 /ishtar_common/models.py
parent535b3e93751de0825f3ccbbbd8ca95fae475d896 (diff)
downloadIshtar-9c780920b2773ac92e46ec07e29a3e489c8357f7.tar.bz2
Ishtar-9c780920b2773ac92e46ec07e29a3e489c8357f7.zip
Towns: remove "canton" add limits - change meta for data
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index c3ba4fdd0..a06568d99 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2659,12 +2659,11 @@ class Town(Imported, models.Model):
surface = models.IntegerField(_(u"Surface (m2)"), blank=True, null=True)
center = models.PointField(_(u"Localisation"), srid=settings.SRID,
blank=True, null=True)
+ limit = models.MultiPolygonField(_(u"Limit"), blank=True, null=True)
if settings.COUNTRY == 'fr':
numero_insee = models.CharField(u"Numéro INSEE", max_length=6)
departement = models.ForeignKey(
Department, verbose_name=u"Département", null=True, blank=True)
- canton = models.ForeignKey(Canton, verbose_name=u"Canton", null=True,
- blank=True)
year = models.IntegerField(
_("Year of creation"), null=True, blank=True,
help_text=_(u"Filling this field is relevant to distinguish old towns "