From 8d6f214b9e88e64e5776bb5d6580c718ca792bbd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 30 Aug 2016 18:10:19 +0200 Subject: Imports: delete town when associated import is deleted (refs #2867) --- ishtar_common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common/models.py') 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, -- cgit v1.2.3