Sunil Mohan Adapa 9368504da5
*.py: Use SPDX license identifier
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-02-19 14:38:55 +02:00

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)