mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-29 12:09:37 +00:00
searx: Fix issue setting all safe search form values
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
28b0ceb0e9
commit
14c1e6580a
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user