Valeur supprimée du cache si paramètre updated

This commit is contained in:
Aurélien Delobelle 2016-08-22 04:25:44 +02:00
parent 7ca123e885
commit 8b66294b41

View file

@ -270,4 +270,5 @@ class SettingsForm(forms.ModelForm):
raise ValidationError('Renseignez une durée')
self.cleaned_data['value_decimal'] = None
self.cleaned_data['value_account'] = None
cache.delete(name)
super(SettingsForm, self).clean()