summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-30 18:10:19 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-08-30 18:10:19 +0200
commitbf666ea3c1c5e61d71f8bb228c235dd3d9dfe38e (patch)
treee29e19b07516c5a1b6547cfb6b16b00ae62d4a27 /ishtar_common/models.py
parent3356b55ec519a10393f1bbc07420807bde84fb79 (diff)
downloadIshtar-bf666ea3c1c5e61d71f8bb228c235dd3d9dfe38e.tar.bz2
Ishtar-bf666ea3c1c5e61d71f8bb228c235dd3d9dfe38e.zip
Imports: delete town when associated import is deleted (refs #2867)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 6228ea1d0..7b448284e 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2565,7 +2565,7 @@ if settings.COUNTRY == 'fr':
(self.name, unicode(self.arrondissement)))
-class Town(models.Model):
+class Town(Imported, models.Model):
name = models.CharField(_(u"Name"), max_length=100)
surface = models.IntegerField(_(u"Surface (m2)"), blank=True, null=True)
center = models.PointField(_(u"Localisation"), srid=settings.SRID,