diff --git a/plinth/modules/searx/views.py b/plinth/modules/searx/views.py index 2684a47ab..db2b7334a 100644 --- a/plinth/modules/searx/views.py +++ b/plinth/modules/searx/views.py @@ -45,9 +45,10 @@ class SearxServiceView(views.ServiceView): def form_valid(self, form): """Apply the changes submitted in the form.""" + old_data = form.initial form_data = form.cleaned_data - if form_data['safe_search']: + if str(old_data['safe_search']) != form_data['safe_search']: try: actions.superuser_run( 'searx',