clear map cache on model delete
This commit is contained in:
parent
6906e1540c
commit
a4644a9c5b
1 changed files with 4 additions and 0 deletions
|
@ -46,5 +46,9 @@ class MapItem(models.Model, metaclass=MapItemMeta):
|
|||
with set_last_mapdata_update():
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
with set_last_mapdata_update():
|
||||
super().delete(*args, **kwargs)
|
||||
|
||||
class Meta:
|
||||
abstract = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue