Cache access to cache object

This commit is contained in:
Raphael Michel
2017-10-18 10:27:57 +02:00
parent 7e1e259897
commit 03133dc1fd
12 changed files with 115 additions and 23 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ class OrganizerUpdateForm(OrganizerForm):
KnownDomain.objects.create(organizer=instance, domainname=self.cleaned_data['domain'])
elif current_domain:
current_domain.delete()
instance.get_cache().clear()
instance.cache.clear()
for ev in instance.events.all():
ev.cache.clear()
return instance