From 5fb235649207a15f54c69f3ac9c2f0659fc2436d Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 26 Oct 2017 18:29:00 +0200 Subject: Towns: remove "canton" add limits - change meta for data --- ishtar_common/models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ishtar_common/models.py') 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 " -- cgit v1.2.3