summaryrefslogtreecommitdiff
path: root/ishtar/furnitures/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar/furnitures/models.py')
-rw-r--r--ishtar/furnitures/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ishtar/furnitures/models.py b/ishtar/furnitures/models.py
index 65258c65d..86d5e2634 100644
--- a/ishtar/furnitures/models.py
+++ b/ishtar/furnitures/models.py
@@ -569,7 +569,8 @@ class Town(models.Model):
center = models.PointField(_(u"Localisation"), srid=settings.SRID)
if settings.COUNTRY == 'fr':
numero_insee = models.CharField(u"Numéro INSEE", max_length=5)
- canton = models.ForeignKey(Canton, verbose_name=u"Canton")
+ canton = models.ForeignKey(Canton, verbose_name=u"Canton", null=True,
+ blank=True)
objects = models.GeoManager()
class Meta: