register_changed_geometries on LocationGroup delete
This commit is contained in:
parent
9e0181fee3
commit
c0c8675b1c
1 changed files with 4 additions and 0 deletions
|
@ -312,6 +312,10 @@ class LocationGroup(Location, models.Model):
|
|||
self.register_changed_geometries()
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
self.register_changed_geometries()
|
||||
super().delete(*args, **kwargs)
|
||||
|
||||
|
||||
class LocationRedirect(LocationSlug):
|
||||
target = models.ForeignKey(LocationSlug, related_name='redirects', on_delete=models.CASCADE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue