mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Cache access to cache object
This commit is contained in:
@@ -182,3 +182,13 @@ class TaxRule(LoggedModel):
|
||||
|
||||
# Consumer in different EU country / invalid VAT
|
||||
return True
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
super().delete(*args, **kwargs)
|
||||
if self.event:
|
||||
self.event.cache.clear()
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
super().save(*args, **kwargs)
|
||||
if self.event:
|
||||
self.event.cache.clear()
|
||||
|
||||
Reference in New Issue
Block a user