Sunil Mohan Adapa 23b6aff290
plinth/*: Rename plinth/ folder to freedombox/
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-08-28 07:35:01 -04:00

20 lines
668 B
Python

# SPDX-License-Identifier: AGPL-3.0-or-later
"""Django form for configuring Searx."""
from django import forms
from django.utils.translation import gettext_lazy as _
class SearxForm(forms.Form):
"""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)