mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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):
|
def form_valid(self, form):
|
||||||
"""Apply the changes submitted in the form."""
|
"""Apply the changes submitted in the form."""
|
||||||
|
old_data = form.initial
|
||||||
form_data = form.cleaned_data
|
form_data = form.cleaned_data
|
||||||
|
|
||||||
if form_data['safe_search']:
|
if str(old_data['safe_search']) != form_data['safe_search']:
|
||||||
try:
|
try:
|
||||||
actions.superuser_run(
|
actions.superuser_run(
|
||||||
'searx',
|
'searx',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user