mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
23 lines
701 B
Python
23 lines
701 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""
|
|
Django form for configuring Searx.
|
|
"""
|
|
|
|
from django import forms
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from plinth.forms import AppForm
|
|
|
|
|
|
class SearxForm(AppForm):
|
|
"""Searx configuration form."""
|
|
safe_search = forms.ChoiceField(
|
|
label=_('Safe Search'), help_text=_(
|
|
'Select the default family filter to apply to your search results.'
|
|
), choices=((0, _('None')), (1, _('Moderate')), (2, _('Strict'))))
|
|
|
|
public_access = forms.BooleanField(
|
|
label=_('Allow Public Access'), help_text=_(
|
|
'Allow this application to be used by anyone who can reach it.'),
|
|
required=False)
|